EKS VPC Tags Module
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
- Terraform
- Terragrunt
# ------------------------------------------------------------------------------------------------------
# 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.72.0"
# ----------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ----------------------------------------------------------------------------------------------------
# Names of the EKS clusters that you would like to associate with this VPC.
eks_cluster_names = <list(string)>
}
# ------------------------------------------------------------------------------------------------------
# DEPLOY GRUNTWORK'S EKS-VPC-TAGS MODULE
# ------------------------------------------------------------------------------------------------------
terraform {
source = "git::git@github.com:gruntwork-io/terraform-aws-eks.git//modules/eks-vpc-tags?ref=v0.72.0"
}
inputs = {
# ----------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ----------------------------------------------------------------------------------------------------
# Names of the EKS clusters that you would like to associate with this VPC.
eks_cluster_names = <list(string)>
}
Reference
- Inputs
- Outputs
Required
eks_cluster_names
list(string)Names of the EKS clusters that you would like to associate with this VPC.
Tags for the VPC to use for integration with EKS.
Tags for private application subnets in the VPC to use for integration with EKS.
Tags for private persistence tier subnets in the VPC to use for integration with EKS.
Tags for public subnets in the VPC to use for integration with EKS.