1. Testing Terraform: validate, lint, terraform test and mocks
Build a testing pyramid for infrastructure: fmt and validate, TFLint, terraform test with plan and apply runs, mock providers, and when Terratest is worth it.
6 lessons · about 107 minutes of reading · Helmsman Pro
This page is the public course outline. Lessons, labs, tools and exams open after you sign in to your free account.
Terraform as a production discipline: a testing pyramid, policy and cost checks, pipelines with OIDC and reviewed plans, structuring large estates with layers and Stacks, AKS and GitOps, actions, upgrades, OpenTofu, and certification.
Before you start: Courses 47 and 48.
Build a testing pyramid for infrastructure: fmt and validate, TFLint, terraform test with plan and apply runs, mock providers, and when Terratest is worth it.
Stop insecure or expensive changes before they apply: scan code with Trivy and Checkov, evaluate plans with OPA or Sentinel, and estimate cost with Infracost.
A production pipeline: OIDC to the cloud, plan and policy on every pull request, saved plans applied after approval, environments, concurrency and Atlantis.
Organise many environments, regions and teams: repository layouts, directories versus workspaces, layered state, cross-state data, Terraform Stacks and Terragrunt.
Provision AKS with Terraform, configure the Kubernetes and Helm providers safely, hand application delivery to GitOps, and use Terraform actions for operations outside create, read, update and delete.
Keep an estate healthy for years: upgrade Terraform and providers safely, decide between Terraform and OpenTofu, migrate between them, and prepare for Terraform Associate and the professional exams.
.tftest.hcl (or .tftest.json).
terraform show -json tfplan.
id-token: write.
terraform_remote_state.
oidc_issuer_enabled = true and workload_identity_enabled = true.
Eight.