Open joshaw opened 11 months ago
Voting for Prioritization
Volunteering to Work on This Issue
In case it's useful, I've used a dynamic block to avoid the perpetual diff here, eg:
resource "aws_cognito_user_pool" "example" {
name = "example"
dynamic "user_attribute_update_settings" {
for_each = length(var.attributes_require_verification) == 0 ? [] : [1]
content {
attributes_require_verification_before_update = var.attributes_require_verification
}
}
}
Terraform Core Version
v1.6.5
AWS Provider Version
v5.30.0
Affected Resource(s)
Expected Behavior
A
plan
after anapply
shows no changes.Actual Behavior
We see a perpetual diff in
aws_cognito_user_pool
on theuser_attribute_update_settings
field.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
user_attribute_update_settings
.Debug Output
The full TF_LOG=TRACE terraform apply on the spurious diff is at https://gist.github.com/joshaw/e5f9e4c3262f1a425cc9f1d7c2bcd6a1.
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None