Closed cullenmcdermott closed 3 years ago
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.
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 myThis actually doesn't fix it. As soon as my instances scale from 2 to 3 then it tries to rebuild the cluster again.instance_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 numberterraform 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