Skip to content

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:

  1. The --iam-assume-role-duration flag.
  2. The TG_IAM_ASSUME_ROLE_DURATION environment variable.
  3. iam_assume_role_duration in the unit’s terragrunt.hcl.
  4. iam_assume_role_duration in a file the unit includes.

Examples

terragrunt.hcl
iam_assume_role_duration = 14400