iam_assume_role_duration
unitoptional(number, 3600)
Usage
The iam_assume_role_duration attribute sets the STS session duration, in seconds, for the IAM role Terragrunt assumes before invoking OpenTofu/Terraform.
Precedence
Terragrunt uses the first of these that is set:
- The
--iam-assume-role-durationflag. - The
TG_IAM_ASSUME_ROLE_DURATIONenvironment variable. iam_assume_role_durationin the unit’sterragrunt.hcl.iam_assume_role_durationin a file the unit includes.
Examples
iam_assume_role_duration = 14400