-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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]: terraform apply
failed to remove resource's tag from state
#31695
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Because IAM has per-resource tagging functions rather than per-service, we cannot use the generic code in the tagging interceptor and these resources aren't getting the benefit of the |
Hey, I'm seeing this behaviour on several other resources also. Will list them below.
|
This functionality has been released in v5.2.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. 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. |
Terraform Core Version
1.4.6
AWS Provider Version
5.0.1
Affected Resource(s)
Expected Behavior
We removed
Environment
andProduct
of the resource's tags and moved them todefault_tags
.terraform plan
showed that they are removed fromtags
and added totags_all
.We expected
terraform apply
to reflect that change to the state file.Plan
Actual Behavior
We found that
terraform apply
failed to remove resource's tag from the state file.So,
terraform plan
always shows the deletion of the resource's tag.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
I wonder if this can be reproduced when some keys are removed from tags when tags and default_tags declared.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: