Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh only fails on first run #67

Open
0x46616c6b opened this issue Mar 1, 2022 · 2 comments
Open

Refresh only fails on first run #67

0x46616c6b opened this issue Mar 1, 2022 · 2 comments

Comments

@0x46616c6b
Copy link

0x46616c6b commented Mar 1, 2022

Hey, I try to use the module to create a fresh Cognito User Pool. The terraform plan -refresh-only fails with

Terraform v1.1.3
on linux_amd64
Configuring remote state backend...
Initializing Terraform configuration...
╷
│ Error: Unsupported attribute
│ 
│   on .terraform/modules/aws-cognito-user-pool/outputs.tf line 16, in locals:16:     tags = local.o_user_pool_tags != null ? local.user_pool.tags : {}
│     ├────────────────
│     │ local.user_pool is object with no attributes
│ 
│ This object does not have an attribute named "tags".

Provider: hashicorp/aws v3.74.3

For me that looks like a bug or do I wrongly used something?

@mariux
Copy link
Member

mariux commented Mar 1, 2022

agreeing this looks like a bug.. 🐛

juts to be clear, you run a terraform plan -refresh-only without having it deployed before?

I will try to recreate this failure in the tests, so any details are helpful to fix it once and for ever ;)

@0x46616c6b
Copy link
Author

Yes, I tried this in an empty workspace with only configuring one Cognito User Pool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants