In this project, I demonstrate how to use Terragrunt to create and manage AWS serverless resources while keeping state files organized at both the resource and environment level.
The project uses custom Lambda modules specifically designed for a DynamoDB → Lambda → API Gateway architecture. This setup is particularly useful when you manage multiple environments in a single AWS account. The Terragrunt in this project is using a Terraform module that prevents duplicate resource errors across environments. I’ve explained this module in detail in another blog post here:
👉 Ultimate Terraform Module for DynamoDB, Lambda, and API Gateway Integration
The full code for this project is available on GitHub:
👉 Ultimate Terragrunt for Serverless Architecture