Closed ericksoen closed 1 year ago
@ericksoen Ugh! Thanks for reporting this and the very detailed information. That will definitely make it easier to track down the problem. I'm not sure when we'll have a chance to tackle this. Hopefully, you or someone from the community will be able to address this.
It looks like there may already be an issue for this at #5557. (For future travelers, this does not look terribly similar to #14628.)
I'm hoping to take a look at this one at some point. For my immediate needs, I needed a GitHub issue id to add to my project source code to explain why the issue persists 😊.
Thanks for the cross-reference on #5557 (at first glance it didn't seem similar to me, but I'll review with a closer eye this time).
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
For the
aws_elasticsearch_domain
resource defined below, there is a persistent diff that appears forcognito_options
whenenabled=false
and the other configuration options are valued. This issue only appears after at least one terraform apply cycle has been executed whereenabled=true
. After that cycle, subsequent executions always show a diff forcognito_options
and the values are never persisted toterraform.tfstate
.Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Terraform does not show a diff for any cognito options if
enabled = false
and there are no changes to other cognito properties likeidentity_pool_id
,role_arn
oruser_pool_id
.Actual Behavior
Terraform shows diff for every apply to
identity_pool_id
,role_arn
oruser_pool_id
whenenabled = false
.Steps to Reproduce
terraform apply
enabled = true
terraform apply
enabled = false
terraform apply
Important Factoids
cognito_options
with simple object whenenabled = false
for initial applycognito_options
whenenabled = false
for initial applyCognitoOptions
as returnd by the AWS CLIenabled=true
and applying, the AWS API and Terraform state file all show the provided values foridentity_pool_id
,role_arn
, anduser_pool_id
:enabled = false
again and re-applying, the AWS API and Terraform state file now show conflicting representations:References
0000