-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: TF_AWS_DEFAULT_TAGS works in plan and fails in apply #38829
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Looks like the same input vars for the This is different from the plan output when using |
Hey @nitrocode 👋 Thank you for taking the time to raise this, and for following up with your findings! Given that it wound up being an issue of how Atlantis is preserving the environment variables between stages, I'm going to close this. If you run into any further issues with the provider, please do let us know and we'd be happy to look into it! |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
Hi @justinretzolk , even though I was able to workaround the issue, the main issue is the difference between TF_VAR vs TF_AWS_DEFAULT_TAGS. The former persists in the plan file. The latter does not persist in the plan file so the apply shows inconsistent results. I believe these different types of env vars should be consistent, no? The former is the behavior in terraform/opentodu. The latter is the behavior in aws provider. |
cc: @justinretzolk |
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. |
Terraform Core Version
1.8.1
AWS Provider Version
5.62.0
Affected Resource(s)
Expected Behavior
Apply works as expected without an error
Actual Behavior
The plan shows this which is affected
Relevant Error/Panic Output Snippet
The apply shows this
Terraform Configuration Files
Create a simple role without setting tags or tags_all or default_tags on the aws provider
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
I saw this in an atlantis deployment with the following configuration
The workaround was to add the same env vars for both
plan
andapply
stages which is odd because this is not needed forTF_VAR_
inputs.References
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: