Skip to content

Commit 02de766

Browse files
authored
Merge pull request #16 from aws-samples/fix-lambdaTimeout
update perms/timeout to stop errors at execution
2 parents c2e9c86 + 1780651 commit 02de766

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ebs/CloudFormation/Stack1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Resources:
5050
- lambda:CreateFunction
5151
- lambda:GetFunction*
5252
- lambda:InvokeFunction
53-
Resource: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:DetachVolumeLambda*'
53+
Resource: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function/DetachVolumeLambda*'
5454
- Effect: Allow
5555
Action:
5656
- kms:Encrypt

ebs/CloudFormation/Stack2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Resources:
174174
InstanceId: "{{describeVolume.instanceId}}"
175175
- name: detachEBSVolume
176176
action: aws:executeAutomation
177-
timeoutSeconds: 300
177+
timeoutSeconds: 600
178178
onFailure: step:attachOriginalVolume
179179
nextStep: attachNewEBSVolume
180180
maxAttempts: 1
@@ -184,7 +184,7 @@ Resources:
184184
VolumeId: "{{volumeId}}"
185185
- name: attachNewEBSVolume
186186
action: aws:executeAutomation
187-
timeoutSeconds: 180
187+
timeoutSeconds: 600
188188
onFailure: step:detachNewVolume
189189
nextStep: applyDeleteOnTerminationValue
190190
maxAttempts: 1

0 commit comments

Comments
 (0)