Last active
January 9, 2023 14:53
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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