Amazon Web Services
AWS-10 intermediate
Orchestrate an order workflow with AWS Step Functions
Write a state machine in the Amazon States Language that validates an order, branches on the amount, charges payment with automatic retries, catches a declined card and ships the order – then trace every execution in the graph and event history.
What you'll do
- Write Task, Choice, Pass, Succeed and Fail states in ASL
- Shape data with Parameters, ResultSelector, ResultPath and OutputPath
- Handle transient errors with Retry and business errors with Catch
- Debug executions with the graph and event history
- Start and inspect executions from the CLI
Lab tasks
-
1
Create the state machine
order-workflow - 2 Run a normal order – watch the automatic retry
- 3 Catch a declined card
- 4 Branch large orders to manual review
- 5 See an unhandled error fail the workflow
- 6 Start and inspect an execution from CloudShell