This deploys the following:
- Creates a new VPC, 3 Private Subnets and 3 Public Subnets
- Creates Internet gateway for Public Subnets and NAT Gateway for Private Subnets
- Creates EKS cluster control plane with one managed node group
Ensure that you have installed the following tools before you start working with this module:
git clone https://github.com/aspenmesh/aspenmesh-cloud-tf.git
Initialize a working directory with configuration files
cd aspenmesh-cloud-tf/eks-cluster
terraform init
terraform plan
terraform apply
~/.kube/config
file gets updated with cluster details and certificate from the below command. This command is also an output after applying the configuration.
$ aws eks --region <enter-your-region> update-kubeconfig --name <cluster-name>
The following commands destroy the resources created by terraform apply
:
cd aspenmesh-cloud-tf/eks-cluster
terraform destroy