/example-terraform-eks

Sample Terraform code to spin EKS and other fun bits

Primary LanguageHCLMIT LicenseMIT

Hello!

This repo is full of sample Terraform code to spin EKS and other fun bits. Each subfolder spins up a different type of EKS cluster depending on the end use case of the cluster. For example, eks is just a generic cluster with 1 managed node group while eks-for-kubecf configures the disk needed for a successful deployment of KubeCF

To deploy any of these examples set your AWS environment variables, then cd into the subfolder with your desired cluster type and run the terraform commands:

export AWS_ACCESS_KEY_ID=AKIAGETYOUROWNCREDS2
export AWS_SECRET_ACCESS_KEY=Nqo8XDD0cz8kffU234eCP0tKy9xHWBwg1JghXvM4
export AWS_DEFAULT_REGION=us-east-2

terraform init
terraform apply

KubeCF on EKS

Check out the README.md in the eks-for-kubecf subfolder for more details, below is an aggregation of all the EKS and KubeCF blogs used as a reference to get KubeCF to live happily in EKS.

References:

Using EKSCTL

From this blog post the instructions for deploying a 2 nodes kubernetes cluster with all the fixin's: vpc, subnets, IAM roles and sausage gravy. This repo is basically the "Terraform version" of this blog.