Helmsman Academy
Terraform, end to end

Terraform in production: testing, policy, pipelines, scale and certification

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.

Sign in and start

In short

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.

What you'll learn

Lessons

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.

Sign in to open the lesson

2. Policy as code, security scanning and cost

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.

Sign in to open the lesson

3. CI/CD for Terraform: plan on pull request, apply on merge

A production pipeline: OIDC to the cloud, plan and policy on every pull request, saved plans applied after approval, environments, concurrency and Atlantis.

Sign in to open the lesson

4. Structuring a large estate: environments, layers, Stacks and Terragrunt

Organise many environments, regions and teams: repository layouts, directories versus workspaces, layered state, cross-state data, Terraform Stacks and Terragrunt.

Sign in to open the lesson

5. Terraform for Kubernetes and AKS, and actions

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.

Sign in to open the lesson

6. Operating Terraform over time: upgrades, OpenTofu and certification

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.

Sign in to open the lesson

Common questions

What file extension do Terraform tests use?

.tftest.hcl (or .tftest.json).

Which command turns a saved plan into JSON?

terraform show -json tfplan.

Which permission must a GitHub workflow have to request an OIDC token?

id-token: write.

Which data source reads another configuration's outputs?

terraform_remote_state.

Which two AKS settings are needed for workload identity?

oidc_issuer_enabled = true and workload_identity_enabled = true.

How many objectives does Terraform Associate 004 have?

Eight.