Open ivanfavi opened 4 years ago
I met the same problem, the workaround is to add a ignore_changes
to the target resource.
resource "..." "..." {
lifecycle {
ignore_changes = [
configurations_json
]
}
}
Hey @ivanfavi 👋 Thank you for taking the time to file this issue. Given that there's been a number of Terraform and AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior?
Yes it is still happening
Thank you for the update! I'm going to go ahead and label this as a bug so that we can take a look into it as time permits. Thank you again for filing this!
This is happening in v1.1.2 today.
I faced the same issue today
terraform version 1.2.7
aws provider verison 4.26.0
Community Note
Terraform Version
terraform -version Terraform v0.12.24
Affected Resource(s)
Terraform Configuration Files
datasource.tf
configurations.json
emr.tf
Expected Behavior
It should keep the current status through configurations_json argument provided without expecting any change.
Actual Behavior
Steps to Reproduce
Just perform a terraform plan or apply with sensible data in the configurations.json settings provided to the aws_emr_cluster resource
Important Factoids
If you look at the configurations in the EMR console you could see the password provided is replaced by
"********"
(it is encrypted in some way by amazon). I just updated the password provided by terraform for this value"********"
Then terraform plan/apply didn't ask to replace the existing EMR cluster.
References