terraform-aws-cognito-user-pool
terraform-aws-cognito-user-pool copied to clipboard
Refresh only fails on first run
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?
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 ;)
Yes, I tried this in an empty workspace with only configuring one Cognito User Pool.