Unwarranted changes when updating tags on aws_autoscaling_group #15227
Labels
bug
Addresses a defect in current functionality.
service/autoscaling
Issues and PRs that pertain to the autoscaling service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
upstream
Addresses functionality related to the cloud provider.
Uh oh!
There was an error while loading. Please reload this page.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.13
provider.aws v3.7.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
After the
aws_autoscaling_group
has applied, when deleting a tag or updating an existing tag, only that change should plan.Actual Behavior
The deleted/updated tag update is shown, as well as an empty map entry, shown as
{}
in the plan.Steps to Reproduce
aws_autoscaling_group
terraform apply
terraform plan
and review the output:Important Factoids
This specific anomaly doesn't seem harmful...the empty map does persist in state once applied, but it doesn't change anything to the actual resource. The only time we caught it is when we ran it in TFE against our AWS Tags policy, which iterates through each
tags
map for theaws_autoscaling_group
resource. When this extra empty map shows up, it breaks our policy. We've gotten around the policy issue in the meantime, but the provider issue still stands.References
The text was updated successfully, but these errors were encountered: