This is a simplified infrastructure-live repository for testing purposes with Gruntwork Runbooks. It implements the basic patterns of organizing Infrastructure as Code (IaC) with Terragrunt.
This repository is modeled after terragrunt-infrastructure-live-stacks-example but simplified for ease of use in creating pull requests, launching modules, and testing infrastructure workflows.
An infrastructure-live repository contains the "live" infrastructure configurations - the actual infrastructure that is provisioned. This is different from an infrastructure-catalog repository which contains reusable infrastructure patterns such as OpenTofu/Terraform modules.
To use this repository, install:
Or use mise to install all tools with pinned versions:
mise installBefore provisioning infrastructure:
-
Update S3 bucket name in
root.hcl(line 39) to ensure uniqueness:bucket = "${get_env("TG_BUCKET_PREFIX", "")}runbooks-tests-tf-state-${local.account_name}-${local.aws_region}"
-
Update AWS account IDs in
dev/account.hclandprod/account.hcl:aws_account_id = "123456789012" # Replace with your account ID
-
Configure AWS credentials using one of the supported methods
# Navigate to the module directory
cd dev/us-east-1/s3-bucket
# Plan the changes
terragrunt plan
# Apply the changes
terragrunt apply