possibly other resources with tags/tags_all and using framework resource
Expected Behavior
No changes. Your infrastructure matches the configuration.
Actual Behavior
tags are marked for update on every apply:
Terraform will perform the following actions:
# aws_networkmonitor_monitor.example will be updated in-place
~ resource "aws_networkmonitor_monitor" "example" {
id = "example"
+ tags = {}
# (4 unchanged attributes hidden)
}
I've traced the issue down to this line. I think it is incorrect to assume tags should be null map. Possibly stateTags value should also be read from current state. My suggestion is to add on line 520
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.8.5
AWS Provider Version
5.56.0
Affected Resource(s)
possibly other resources with tags/tags_all and using framework resource
Expected Behavior
No changes. Your infrastructure matches the configuration.
Actual Behavior
tags are marked for update on every apply:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
to get resource created for the first timeterraform plan
to see the issue:Debug Output
notice second to last line
Panic Output
No response
Important Factoids
No response
References
Same bug reported previously
I've traced the issue down to this line. I think it is incorrect to assume tags should be null map. Possibly
stateTags
value should also be read from current state. My suggestion is to add on line 520Would you like to implement a fix?
None