Skip to main content
Amazon EKS 0.67.1Last updated in version 0.64.3

EKS VPC Tags Module

View SourceRelease Notes

This Terraform Module exports a set of known tags for VPCs that are used for an Elastic Container Service for Kubernetes Cluster.

EKS relies on various tags on resources related to the cluster to provide integrations with plugins in Kubernetes. For example, VPC subnets must be tagged with kubernetes.io/cluster/EKS_CLUSTER_NAME=shared so that the amazon-vpc-cni-k8s plugin knows which subnet to use to allocate IPs for Kubernetes pods. The tags exported by this module are the most common recommended tags to use for a newly created VPC intended to be used with EKS.

Sample Usage

main.tf

# ------------------------------------------------------------------------------------------------------
# DEPLOY GRUNTWORK'S EKS-VPC-TAGS MODULE
# ------------------------------------------------------------------------------------------------------

module "eks_vpc_tags" {

source = "git::git@github.com:gruntwork-io/terraform-aws-eks.git//modules/eks-vpc-tags?ref=v0.67.1"

# ----------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ----------------------------------------------------------------------------------------------------

# Names of the EKS clusters that you would like to associate with this VPC.
eks_cluster_names = <list(string)>

}


Reference

Required

eks_cluster_nameslist(string)required

Names of the EKS clusters that you would like to associate with this VPC.