aws_emr_cluster > 1.55.0 causes the cluster to be rebuild every run #7405
Labels
bug
Addresses a defect in current functionality.
service/emr
Issues and PRs that pertain to the emr service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Terraform Version
0.10.8 - I know this is very old and I can confirm that this does not happen on 0.11.11. However we did not see this issue until we pulled in 1.56.0 of the provider.
Affected Resource(s)
Terraform Configuration Files
Debug Output
Plan Debug Output: https://gist.github.com/cullenmcdermott/48d2a109d0674d44aa43612b170a6bea
Apply Debug Output: https://gist.github.com/cullenmcdermott/869ec4b1388d0cefb62cbc5ff4475302
Panic Output
Panic Output: https://gist.github.com/cullenmcdermott/b613be75c04869bf3a48244ae0bb90af
Expected Behavior
I should be able to run
terraform apply
on this configuration multiple times and my cluster will not be rebuilt.Actual Behavior
terraform will panic when I run an apply, then I run another apply and it will recreate my cluster and delete my old cluster.
Steps to Reproduce
The cause of the issue in my configuration appears to be the fact that I set myinstance_count
in my TASK instance_group to 1 and then in my autoscaling policy I set the min/max to 2 and 3. If I set theinstance_count
andmin
values to the same numberThis actually doesn't fix it. As soon as my instances scale from 2 to 3 then it tries to rebuild the cluster again.
terraform apply
- This creates the cluster the first timeterraform plan
- Shows that my cluster is going to be destroyed and recreatedterraform plan
- Terraform panics before doing anythingterraform apply
- Terraform creates a new cluster and deletes my previous clusterImportant Factoids
The text was updated successfully, but these errors were encountered: