Terraform EKS tagging

后端 未结 3 707
悲哀的现实
悲哀的现实 2021-01-23 18:59

I am having this issue of Terraform EKS tagging and don\'t seem to find workable solution to tag all the VPC subnets when a new cluster is created.

To provide some cont

3条回答
  •  醉酒成梦
    2021-01-23 19:34

    In our case we have separate scripts to provision VPC and networking resources there we are not adding EKS specific tags.

    For EKS cluster provisioning we have separate scripts which will auto update/add tags on cluster.

    So on VPC scripts in provider.tf file we add below condition so that scripts will not remove these tags and everything works properly.

    provider "aws" {
    region = "us-east-1"
     ignore_tags {
        key_prefixes = ["kubernetes.io/cluster/"]
      }
    }
    

提交回复
热议问题