Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Example EKS cluster using Terraform

This repository showcases using Terraform to provision a new VPC and Elastic Kubernetes Service (EKS) cluster with nodes within.

By default, this will create a highly available cluster using public and private subnets, a best practise for production environments.

Setup variables

In terraform.tfvars set the variables you'd like.

name and region must be defined, everything else is optional.

Provisioning

terraform init
terraform apply

Configure kubectl

See this guide on setting up authentication.

Test it works

kubectl get nodes -o wide

Tearing down

terraform destroy

What now?

Documentation to check out:

Other things you may wish to do: