-
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
Terraform Crash dynamic tags #22043
Comments
Hi @udayanms, Thanks for filing the issue! This is due to the inappropriate application of A simpler reproduction for later reference:
|
thanks James, could you elaborate what should have been the right way? above its not clear. |
The You can assign a map to
|
Thanks, actually intention was to build a model where I could enforce some standard tags along with the new tags. But this does the job at this moment. As a short note the validation should highlight the mistake than crashing. I feel it still falls under a category of Bug. The challenge is there is no extensive documentation of different scenarios of TF. e.g. it would have been helpful for each feature if there was any examples attached for each type of variable. I had to dig across multiple samples of code to understand this Dynamic feature. Thanks again, |
I believe it should lead to a graceful termination with appropriate error. Exit with Crash leaves lose end which may come back as a negative aspect of the tool. |
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
.12
Terraform Configuration Files
variables.tf:
main.tf:
vars.tfvars:
Debug Output
Crash Output
Expected Behavior
Just add tags to spot fleet.
Actual Behavior
Crashed
Steps to Reproduce
I just need terraform plan --var-file="vars.tfvars"
every run even if I delete the state files gives same error.
Additional Context
the only feeling I have it Dynamic loop inside another dynamic loop.
in the code I am running thru instance types using dynamic and then again dynamics for tags. Code was running until I change the standard tag syntax to Dynamic tags.
References
The text was updated successfully, but these errors were encountered: