Skip to content

Commit

Permalink
feat: option to set cdk-diff WF assumed role validity[CLK-462684]
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrateja-clickup committed Jan 25, 2024
1 parent 03ffb31 commit 1d9742f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/cdk-diff-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export module cdkDiffWorkflow {
uses: 'aws-actions/configure-aws-credentials@v1',
with: {
'role-to-assume': env.oidcRoleArn,
'role-duration-seconds': 900,
'role-duration-seconds': env.roleDuration ?? 900,
'aws-region': 'us-west-2',
},
},
Expand Down Expand Up @@ -249,6 +249,12 @@ export module cdkDiffWorkflow {
* Example: `no-qa-changes`
*/
readonly labelToApplyWhenNoDiffPresent: string;

/**
* Duration in seconds for the assumed role to be valid
* Defaut value: `900`
*/
readonly roleDuration?: number;
}

export interface EnvToDiff extends BaseEnvToDiff {
Expand Down

0 comments on commit 1d9742f

Please sign in to comment.