Learn TERRAGRUNT with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Simple Terragrunt Configuration
# terragrunt/demo/terragrunt.hcl
remote_state {
backend = "s3"
config = {
bucket = "my-terraform-state"
key = "project/terraform.tfstate"
region = "us-east-1"
}
}
include {
path = find_in_parent_folders()
}
dependencies {
paths = ["../vpc", "../database"]
}
A simple Terragrunt configuration to manage Terraform modules with a remote state backend.