Skip to content

Commit

Permalink
Set 12h as the max session duration possible for the cross-account IA…
Browse files Browse the repository at this point in the history
…M Role
  • Loading branch information
dforsber committed Mar 15, 2024
1 parent 40a6207 commit 4ef3097
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/integration/aws/iam_roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class BDIamRole {
const commandParams: iam.CreateRoleRequest = {
Path: this.path,
RoleName: this.iamRoleName,
MaxSessionDuration: 12 * 60 * 60, // 12h in seconds, the max!
AssumeRolePolicyDocument: JSON.stringify(this.getAssumeRolePolicyDocument()),
Tags: [...this.boilingDataTags, ...(this.params.tags ?? [])],
};
Expand Down

0 comments on commit 4ef3097

Please sign in to comment.