Skip to main content
In this guide, we’ll dive into key Terragrunt configuration attributes that unlock advanced control over your Infrastructure as Code workflows. You’ll learn how to parameterize Terraform modules, optimize caching, enforce security safeguards, and handle transient errors—empowering you to build resilient, maintainable deployments.
The image is a diagram titled "Terragrunt Attributes," listing attributes such as Inputs, Download dir, Prevent destroy, Skip, IAM role and related, Terraform binary, Version constraint, and Retryable errors.

Attribute Summary


Detailed Attribute Guide

inputs

Define a map of input variables to inject into your Terraform modules.
Use precise variable names in inputs to match your Terraform module’s variables.tf definitions.

download_dir

Specify where Terragrunt downloads remote modules, providers, and configuration files. This optimizes build speed by caching dependencies locally.

prevent_destroy

Safeguard resources from accidental destruction. When set to true, Terragrunt will refuse to run terraform destroy on the protected blocks.
Enabling prevent_destroy can block intentional resource teardown. Use with caution.

skip

Skip execution of selected Terragrunt commands or blocks to streamline CI/CD pipelines.

iam_role

Assign an AWS IAM role for Terraform operations, ensuring secure and auditable access.

terraform_binary

Point Terragrunt to a specific Terraform binary, enabling consistent Terraform versions across your environments.

version_constraint

Lock both Terraform and Terragrunt to specific versions for consistent builds.

retryable_errors

Configure Terragrunt to automatically retry on transient errors.

Watch Video