terraform-aws-cognito-user-pool icon indicating copy to clipboard operation
terraform-aws-cognito-user-pool copied to clipboard

Refresh only fails on first run

Open 0x46616c6b opened this issue 3 years ago • 2 comments

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?

0x46616c6b avatar Mar 01 '22 15:03 0x46616c6b

agreeing this looks like a bug.. :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 ;)

mariux avatar Mar 01 '22 15:03 mariux

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

0x46616c6b avatar Mar 01 '22 15:03 0x46616c6b