Skip to content

Instantly share code, notes, and snippets.

@kyroskoh
Forked from chadjvw/step-function-retry.yml
Created June 3, 2019 03:29
Show Gist options
  • Save kyroskoh/55e8b034291ae42627f8650404ec962d to your computer and use it in GitHub Desktop.
Save kyroskoh/55e8b034291ae42627f8650404ec962d 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