File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export class IamCredentialsRotator extends Construct {
5252 environment : {
5353 SECRET_NAME_PREFIX : id . toLowerCase ( ) ,
5454 } ,
55+ timeout : Duration . seconds ( 30 ) ,
5556 } ,
5657 ) ;
5758 credentialsRotatorLambda . addToRolePolicy (
@@ -108,6 +109,7 @@ export class IamCredentialsRotator extends Construct {
108109 // Step 3
109110 const cleanupLambda = new CleanupFunction ( this , 'CleanupLambda' , {
110111 description : 'Deletes old IAM credentials for a specific user' ,
112+ timeout : Duration . seconds ( 30 ) ,
111113 } ) ;
112114 cleanupLambda . addToRolePolicy (
113115 new iam . PolicyStatement ( {
@@ -166,6 +168,7 @@ export class IamCredentialsRotator extends Construct {
166168 STATE_MACHINE_ARN : stateMachine . stateMachineArn ,
167169 USERNAMES_PARAMETER_NAME : usernamesParameter . parameterName ,
168170 } ,
171+ timeout : Duration . seconds ( 30 ) ,
169172 } ,
170173 ) ;
171174 stateMachine . grantStartExecution ( eventHandlerFunction ) ;
You can’t perform that action at this time.
0 commit comments