Adopting aws_default_security_group does not update tags #14631
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
The
aws_default_security_group
resource clears all rules when "adopting" the security group and updates with the rules specified in the Terraform configuration. It does not do the same with tags.In EC2 Classic, if the existing default security group has tags set that do not match the tags set in the Terraform configuration, this results in a non-empty plan.
This likely also occurs in VPC, but the tags will have to be created out-of-band for testing.
Community Note
Affected Resource(s)
The text was updated successfully, but these errors were encountered: