Attributes
Terragrunt HCL configuration uses attributes when there are values that need to be defined for Terragrunt as a whole.
Think of attributes as the values used for Terragrunt configuration, such as the inputs to pass an orchestrated OpenTofu/Terraform binary, or the download directory to use.
Unit attributes
Section titled “Unit attributes”download_dirOverrides the directory Terragrunt downloads OpenTofu/Terraform modules into.
iam_assume_role_durationSets the STS session duration, in seconds, for the IAM role Terragrunt assumes.
iam_assume_role_session_nameSets the STS session name for the IAM role Terragrunt assumes.
iam_roleSets the IAM role Terragrunt assumes before invoking OpenTofu/Terraform.
iam_web_identity_tokenSets the web identity token, or the path to it, for assuming iam_role with AssumeRoleWithWebIdentity.
inputsSets the input variables Terragrunt passes to OpenTofu/Terraform.
prevent_destroyStops the destroy and run --all destroy commands from destroying a unit's resources.
terraform_binaryOverrides the OpenTofu/Terraform binary Terragrunt calls.
terraform_version_constraintSets the OpenTofu/Terraform versions a unit accepts.
terragrunt_version_constraintSpecifies which versions of the Terragrunt CLI can be used with your configuration.