This lab walks you through the steps to create a step function and work with different states.
You will practice using AWS Step Functions.
Duration: 1 hour
AWS Region: US East (N. Virginia).
AWS Step Functions is a serverless function orchestrator that makes it easy to sequence AWS Lambda functions and multiple AWS services into business-critical applications.
You can create and run a series of checkpointed and event-driven workflows that maintain the application state with the help of visual interface.
The output of one step acts as an input to the next. Each step in your application executes in order, as defined by your business logic.
Orchestrating a series of individual serverless applications, managing retries, and debugging failures can be challenging.
Step Functions manages sequencing, error handling, retry logic, and state, removing a significant operational burden from you.
A workflow in step functions is called State Machines.
The various tasks which are performed inside the workflow are called States.
There are different types of States.
Task State: A Task state is used to perform some work inside the workflow.
Choice State: A Choice state takes decisions according to the output in the workflow.
Wait State: A Wait state delays a particular task in the workflow for some time.
Parallel State: A Parallel state executes 2 or more tasks parallely.
Pass State: A Pass state passes it’s input to its output without performing work.
Succeed State: A Succeed state stops an execution successfully.
Fail State: A Fail state stops the execution of the state machine and marks it as a failure.
Log into the AWS Management Console.
Create IAM roles for lambda execution and step functions.
Create 5 Lambda Functions.
Create a state machine in step function.
Use different States in the workflow like Task, Choice, Parallel, Wait, End states.
Test the step function