title: Terraform EKS tagging
body: <p>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.</p>
  
  <p>To provide some context: We have one AWS VPC where we deployment several EKS cluster into the subnets. We do not create VPC or subnets are part of the EKS cluster creation. Therefore, the terraform code creating a cluster doesn't get to tag existing subnets and VPC. Although EKS will add the required tags, they are automatically removed next time we run terraform apply on the VPC.</p>
  
  <p>My attempt to workaround is to provide a terraform.tfvars file within the VPC to as follows:</p>
  
  <pre><code>eks_tags = 
   [
   "kubernetes.io/cluster/${var.cluster-1}", "shared", 
   "kubernetes.io/cluster/${var.cluster-2}", "shared",
   "kubernetes.io/cluster/${var.cluster-2}", "shared",
  ]    
  </code></pre>
  
  <p>Then within the VPC and subnets resources, we do something like </p>
  
  <pre><code>    resource "aws_vpc" "demo" {
        cidr_block = "10.0.0.0/16"
  
        tags = "${
          map(
           ${var.eks_tags}
          )
       }"
      }
  </code></pre>
  
  <p>However, the above does not seem to work. I have tried various Terraform 0.11 functions from <a href="https://www.terraform.io/docs/configuration-0-11/interpolation.html" rel="noreferrer">https://www.terraform.io/docs/configuration-0-11/interpolation.html</a> but not of them help.</p>
  
  <p>Has anyone ben able to resolve this issue? </p>
  
  <p>The idea that we always create new VPC and subnet for every EKS cluster is wrong. Obviously, the has to be a way to tag existing VPC and subnet resources using Terraform?</p>