spotinst / terraform-spotinst-ocean-aws-k8s

A Terraform module to create an Ocean Cluster.
Apache License 2.0
4 stars 5 forks source link

Tags change each run no metter if remove tag section at all #27

Closed alexgoddity closed 10 months ago

alexgoddity commented 10 months ago

What happened: I use the module: module "ocean-aws-k8s" { source = "spotinst/ocean-aws-k8s/spotinst" version = "0.4.0" tags = merge({ "Name" = format("%s-worker", module.eks.cluster_name) }, var.tags, ) } Each run I got updated on:

     # module.ocean-aws-k8s.spotinst_ocean_aws.ocean will be updated in-place
  ~ resource "spotinst_ocean_aws" "ocean" {
        id                          = "id"
        name                        = "eks-name"
        # (25 unchanged attributes hidden)

      - tags {
          - key   = "key" -> null
          - value = "value" -> null
        }
      - tags {
          - key   = "key" -> null
          - value = "value" -> null
        }
      - tags {
          - key   = "key" -> null
          - value = "value" -> null
        }
      - tags {
          - key   = "key" -> null
          - value = "value" -> null
        }
        # (6 unchanged blocks hidden)
    }   

What you expected to happen:

No changes. Your infrastructure matches the configuration.

How to reproduce it (as minimally and precisely as possible): run module "ocean-aws-k8s" { source = "spotinst/ocean-aws-k8s/spotinst" version = "0.4.0" tags = merge({ "Name" = format("%s-worker", module.eks.cluster_name) }, var.tags, ) } module "ocean-aws-k8s-vng-workers-arm64" { source = "spotinst/ocean-aws-k8s-vng/spotinst" version = "0.8.0" tags = merge({ "Name" = format("%s-worker", module.eks.cluster_name) }, var.tags, ) } Anything else we need to know:

Environment:

alexgoddity commented 10 months ago

was related to module "eks" { source = "terraform-aws-modules/eks/aws" version = "19.21.0" } as source for values forget it =)