Tags which values haven't changed are getting updated

Hello, i’m using terraform v.0.12.23, eks module v11.1.0 and aws provider v2.63.0 for eks cluster provisioning.
Every time i run terraform plan/apply it shows me that autoscaling group’s tags are changing, despite the fact that those tags have the same keys and values. I’ve repeated the same terraform apply command multiple times but the problem stays.
I’ve checked workers groups in aws console and these tags are present. The id’s of those resources stays the same, and nothing except tags are changing. What might be the reason of such behavior?

~ resource "aws_autoscaling_group" "workers" {
      ~ tags                      = [
          + {
              + "key"                 = "Name"
              + "propagate_at_launch" = "true"
              + "value"               = "x-shared-workers-eks_asg"
            },
          + {
              + "key"                 = "kubernetes.io/cluster/x"
              + "propagate_at_launch" = "true"
              + "value"               = "owned"
            },
          + {
              + "key"                 = "k8s.io/cluster/x"
              + "propagate_at_launch" = "true"
              + "value"               = "owned"
            },
...
          - {
              - "key"                 = "Name"
              - "propagate_at_launch" = "true"
              - "value"               = "x-shared-workers-eks_asg"
            },
          - {
              - "key"                 = "k8s.io/cluster/x"
              - "propagate_at_launch" = "true"
              - "value"               = "owned"
            },
          - {
              - "key"                 = "kubernetes.io/cluster/x"
              - "propagate_at_launch" = "true"
              - "value"               = "owned"
            },
        ]

@owlzq1 This has been raised in a GitHub issue: https://github.com/terraform-providers/terraform-provider-aws/issues/13469.
Until it has been resolved you can pin the AWS provider version to = 2.62.

1 Like