Skip to main content
This workshop assumes you’re already familiar with the techniques and concepts in the Introduction & Key Concepts section. If you haven’t reviewed it yet, start with AWS Architecture and work your way through the rest of the section to fully understand the mechanics and philosophy behind our setup.

Prerequisites

  • AWS SSO signed in: aws sso login --profile <your-profile>. See Getting Started with AWS SSO if you need help setting this up
  • Fast Foundation infrastructure repository cloned
  • You know the target account / environment / region you’ll deploy to
  • You have a VPC and at least one subnet ready (private subnet recommended)

Target folder (where to place your unit)

If your ec2 folder did not exist, add an empty ”…/ec2/_service.hcl” file with content
Pick the account, environment, and region. Example path for a dev workload:

Step 1 — Create terragrunt.hcl

This references the official module from the Terraform Registry.

Step 2 — Define inputs.hcl

Parameter values are stored in Git. Example for development:

Step 3 — Deploy the instance

Run these commands from your new folder:

What you learned

  • How to use the official EC2 module directly with Terragrunt

Cleanup

Important: Don’t forget to clean up the resources you created during this workshop to avoid unnecessary AWS charges.
To destroy the EC2 instance and all associated resources, run the following command from your deployment folder:
When prompted, type yes to confirm the destruction of resources.