iam_role
unitoptional(string)
Usage
The iam_role attribute sets the IAM role Terragrunt assumes before invoking OpenTofu/Terraform.
Precedence
Terragrunt uses the first of these that is set:
- The
--iam-assume-roleflag. - The
TG_IAM_ASSUME_ROLEenvironment variable. iam_rolein the unit’sterragrunt.hcl.iam_rolein a file the unit includes.
Examples
iam_role = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME"