Skip to content

Commit 4ef3097

Browse files
committed
Set 12h as the max session duration possible for the cross-account IAM Role
1 parent 40a6207 commit 4ef3097

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/integration/aws/iam_roles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export class BDIamRole {
118118
const commandParams: iam.CreateRoleRequest = {
119119
Path: this.path,
120120
RoleName: this.iamRoleName,
121+
MaxSessionDuration: 12 * 60 * 60, // 12h in seconds, the max!
121122
AssumeRolePolicyDocument: JSON.stringify(this.getAssumeRolePolicyDocument()),
122123
Tags: [...this.boilingDataTags, ...(this.params.tags ?? [])],
123124
};

0 commit comments

Comments
 (0)