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.3
AWS Provider Version
5.57.0
Affected Resource(s)
Expected Behavior
Basically after https://github.com/hashicorp/terraform-provider-aws/issues/19890 issue was fixed in https://github.com/hashicorp/terraform-provider-aws/pull/33769 (aws provider v5.39), tags from
default_tags
propagated correctly toroot_block_device
inaws_instance
when EC2 first created.And when tags changed in
default_tags
, they should be changed properly forroot_block_device
inaws_instance
.Actual Behavior
But issue is that when tag value changed in
default_tags
, tag got removed fromroot_block_device
and not added back on next apply as well, example:Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Something like this
Steps to Reproduce
terraform apply
SomeTag = "FOO" -> SomeTag = "BAR"
I tested as well different provider versions between 5.39 till 5.57 without any difference.
Right now I had to return hackish way to merge tags on root_block_device from
data.aws_default_tags
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None