-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic counts not persisted in plan output #17926
Comments
Hi @ktham, Thanks for the very complete bug report. This is a known issue at the moment, because of the way We intend change the plan serialization format in the next major release, which would allow us to add the required data to allow interpolated counts to work. If this isn't being run in automation, running I think that you may also be able to avoid this in |
I see, thanks @jbardin . We are ok with doing the interactive terraform apply as a one-off thing outside of our TFE workflow, but ideally we want to avoid doing this outside of our automation. Any estimate on how far out this serialization format change is? (is that the hcl2 stuff?) I'll try that last suggestion to see if that works. |
The plan output changes are directly related to the HCL2 work, so a complete fix will need to wait until the next major release. |
Hi! With the release of Terraform 0.12, there have been several bug fixes, enhancements, and syntax changes which impact this example. I was able to get your example code running with only a few modifications. The The "count" attribute is no longer supported in terraform 0.12:
I am going to close this since the main issue is fixed in terraform 0.12. If you upgrade to terraform 0.12 and see any odd behaviors, please open a new issue. 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. |
Terraform Version
Expected Behavior
Terraform should execute the plan as follows:
Actual Behavior
Terraform silently fails executing the plan.
Steps to Reproduce
terraform init
terraform plan -out tf.out
terraform apply "tf.out"
Terraform Configuration Files
private subnet module
NAT module
Debug Output
The text was updated successfully, but these errors were encountered: