Manage EKS with Terraform
Learning Hub / Cloud — OpenStack, AWS & EKS

Manage EKS with Terraform

Advanced → Architect17 lessonsAvailable

The as-code companion to Production EKS Platform: lay out a Terraform repo for EKS, protect state, build the VPC, cluster, IAM and add-ons as code, run it through a CI/CD pipeline, upgrade and change it safely, handle drift and imports, and recover when state or the cluster goes wrong. Ends with runbooks, a free practice setup and a set of questions with detailed answers.

You'll meetTerraformAmazon EKSremote stateuse_lockfileterraform-aws-modulesaws_eks_clusteraccess entriesPod Identityhelm providerKarpenterOIDCimportmoveddriftterraform test
Start lesson 01 →

What you'll be able to do

  • Structure an EKS Terraform repo in layers with safe, repeatable run order
  • Build the VPC, cluster, node groups, access and pod identities as code
  • Hand platform add-ons from Terraform to GitOps at the right boundary
  • Run plan/apply from a pipeline with short-lived OIDC credentials
  • Upgrade, refactor and import without replacing the cluster
  • Recover from state and cluster disasters with tested runbooks

Before you start

Terraform & Infrastructure as Code, Production EKS Platform (Part 1–2).

How it works

Each lesson: plain-language idea → how it really works → hands-on. Each section ends with a cheat sheet & self-check.

Curriculum

Lessons marked “Read” are ready; the rest are on the way.

Real-world scenarios

Work through each one: symptom → misleading signal → evidence → root cause → prevention.

The plan wants to replace the cluster

One innocent change forces a new cluster. Find the attribute and change it safely.

terraform destroy on the wrong workspace

Recover state and resources after the worst command of the week.

Destroy hangs on the Kubernetes provider

The cluster is gone before the resources that live in it. Untangle the order.

This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.