Skip to content

AWS EKS baselines

Terraform that builds a dev Amazon EKS cluster in ap-southeast-1, in two versions. Pick one folder and work only inside it.

Repository

Baseline What you get
Terraform AWS_Basic VPC over 3 AZs, EKS 1.33, two node groups (3 × t3.medium), six IRSA roles, and the core controllers by Helm: load balancer controller, EBS and EFS CSI, cert-manager, External Secrets, metrics-server, ingress-nginx, Kong (Karpenter is in the code, off by default)
Terraform AWS_HELM The same on 13 × m5.xlarge, plus EBS, EFS and S3 storage, Prometheus, Grafana, Loki, Jenkins and Argo CD

The README lists every resource, setting and pinned version, taken from the code.

Run it

You need an AWS account, AWS CLI v2, Terraform 1.6+ and kubectl.

cd "Terraform AWS_Basic/environments/dev"
# set your state bucket and lock table in 01-backend.tf first, then create terraform.tfvars with the two
# required values: cluster_endpoint_public_access_cidrs (your address) and hosted_zone_ids (README, step 4)
terraform init
terraform plan
terraform apply
aws eks update-kubeconfig --name esign-terraform-dev --region ap-southeast-1

Tear down with terraform destroy from the same folder.

Before any apply

Admin passwords are generated by Terraform and kept in its state, so the state bucket must stay private and encrypted. Argo CD runs without TLS and Kong gets an internet-facing load balancer. The repository's SECURITY.md lists what is enforced and what is not covered yet.

Cost

About $160–220+ a month at 2 × t3.medium; more at the code's default node counts. See Cost.