terraform-provider-aws icon indicating copy to clipboard operation
terraform-provider-aws copied to clipboard

Fix for default_tags and tags on EC2 block devices

Open 0xkag opened this issue 3 months ago • 3 comments

Description

default_tags support for EC2 root block devices was introduced in hashicorp/terraform-provider-aws#33769, which is great ... except it makes the mix of default_tags and tags on a root_block_device perpetually showing drift even when there is none.

The solution is to not remove the default tags config from the volume tags in ec2_instance.

This diff fixes hashicorp/terraform-provider-aws#36448 for us in our environment (which references hashicorp/terraform-provider-aws#33769 as the change that introduced this bug).

This diff possibly fixes hashicorp/terraform-provider-aws#36706 too, but we weren't hitting this issue.

Relations

Relates #33769 Relates #36706 Closes #36448

Output from Acceptance Testing

% make testacc TESTS=TestAccEC2 PKG=ec2
<in progress>

0xkag avatar May 10 '24 21:05 0xkag