Skip to content

Instantly share code, notes, and snippets.

@chadjvw
Created November 15, 2018 13:43
Show Gist options
  • Save chadjvw/71477e3a1e5af11c1654ebec26e93816 to your computer and use it in GitHub Desktop.
Save chadjvw/71477e3a1e5af11c1654ebec26e93816 to your computer and use it in GitHub Desktop.
CheckEC2TargetStatus:
Type: Task
Resource: ${self:custom.function-arn}-CheckEC2TargetStatus
Next: EvaluateEC2TargetStatus
ResultPath: '$.onEC2TargetStatus'
Retry:
- ErrorEquals:
- RequestLimitExceeded
- ThrottlingException
- SnapshotCreationPerVolumeRateExceeded
- Lambda.SdkClientException
- Lambda.AWSLambdaException
- Lambda.ServiceException
- Throttling
- PriorRequestNotComplete
- Lambda.Unknown
IntervalSeconds: 10
MaxAttempts: 10
BackoffRate: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment