Skip to content

Instantly share code, notes, and snippets.

@wparad
Last active January 9, 2023 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wparad/58609cc0dd80a4966f01694700993d21 to your computer and use it in GitHub Desktop.
Save wparad/58609cc0dd80a4966f01694700993d21 to your computer and use it in GitHub Desktop.
Medium: AWS Step function configuration (https://dev.to/wparad/aws-step-functions-advanced-30k2)
{
"StartAt": "Start",
"States": {
"Start": {
"Type": "Task",
"Resource": { "Ref": "LambdaFunctionProductionAlias" },
"Parameters": {
"context.$": "$$",
"parameters.$": "$"
},
"ResultPath": "$.startResult",
"Next": "Verify",
"Retry": [
{
"ErrorEquals": [
"States.ALL"
],
"IntervalSeconds": 10,
"MaxAttempts": 16,
"BackoffRate": 2
}
]
},
"Verify": {
"Type": "Task",
"Resource": { "Ref": "LambdaFunctionProductionAlias" },
"Parameters": {
"context.$": "$$",
"parameters.$": "$"
},
"ResultPath": "$.verifyResult",
"Next": "Cleanup",
"Retry": [
{
"ErrorEquals": [
"States.ALL"
],
"IntervalSeconds": 10,
"MaxAttempts": 19,
"BackoffRate": 2
}
]
},
"Cleanup": {
"Type": "Task",
"Resource": { "Ref": "LambdaFunctionProductionAlias" },
"Parameters": {
"context.$": "$$",
"parameters.$": "$"
},
"ResultPath": "$.cleanResult",
"End": true,
"Retry": [
{
"ErrorEquals": [
"States.ALL"
],
"IntervalSeconds": 10,
"MaxAttempts": 19,
"BackoffRate": 2
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment