This workshop follows Terragrunt units from duplicated Terraform to shared configuration, dependency orchestration, and an optional local AWS-shaped environment.

Each part builds on the previous one, and the exercises run against local state or a local emulator, so no AWS account is needed.

What it covers

  • Part 0: install pinned Terraform, Terragrunt and workshop tools, then enable the shared provider cache.
  • Part 1: compare duplicated Terraform and work through includes, path, text, environment, machine and file functions. Inspect separate state files and decrypt demo secrets with SOPS and age.
  • Part 2: connect units with dependencies and mock outputs, apply in dependency order, inspect the graph and clean up local resources.
  • Part 3: deploy VPC, EKS, RDS, S3 and Route 53 units in dev and prod against Floci, a local AWS emulator. This optional part requires Docker and Docker Compose.
  • Extra: compare discovered implicit stacks with explicit stacks generated from terragrunt.stack.hcl.

Before you start

Run the workshop in Google Cloud Shell or on your own machine:

  • Cloud Shell: open the repository root as the editor workspace, then launch cloudshell-tutorial.md from the tutorial or Cloud Shell button.
  • Local machine: clone the repository and open cloudshell-tutorial.md in a Markdown viewer. The first step installs pinned tools with make bootstrap.

Either way, setup confirms terraform, terragrunt and tenv are available. After setup, commands using cd "$(tgw-root)" can run from anywhere inside the checkout.

Parts 1 and 2 use local state and hashicorp/random; no cloud account or Docker is required. Workshop applies are interactive: review the changes and enter yes to approve or no to cancel. Cleanup commands destroy resources automatically, without confirmation.

The exercises, images and steps are in the terragrunt-workshop repository. Start with cloudshell-tutorial.md.