Overview
To integrate smoothly with Fast Foundation, each Terragrunt unit requires specific configuration blocks in itsterragrunt.hcl file. These ensure that parameter management, resource orchestration, and naming conventions remain consistent across environments.
Required Components
Yourterragrunt.hcl should always include:
-
Includes blocks
- Root include (
root.hcl): This will include root values plus all shared configuration files values.
- Root include (
-
Before-Hooks
- The standard secrets management hook, which keeps
inputs.hclsynchronized with S3 before anyinit,plan, orapply - This is what powers the parameter management automation
- The standard secrets management hook, which keeps
-
Locals block
- Parameter management variables
- Variables from
inputs.hcland shared config files can be defined here for improved readability.
-
Inputs block
- Values passed into the Terraform module
- Typically merged with environment and service variables defined higher in the repo hierarchy
Example terragrunt.hcl
Naming Best Practice
If possible, use the folder name as the resource name. This keeps the repository intuitive: the folder you are working in directly reflects the deployed resource. It simplifies navigation, debugging, and collaboration across teams.Want to dive deeper?
Ready to explore these concepts in more detail? Check out our hands-on workshops:Deploy an EC2 instance
Learn step-by-step how to create an EC2 instance with external modules.
Deploy a custom module
Learn step-by-step how to create an EC2 instance with external modules.
Users and Groups Management
Dive into AWS SSO, groups, and permission sets,
and practice managing users in a safe environment.
and practice managing users in a safe environment.
Users and Groups Management with External Identity Provider (IdP)
Dive into AWS SSO, groups, and permission sets,
and practice managing users in a safe environment.
and practice managing users in a safe environment.