Getting started with AWS Step Functions
Step Functions is a serverless orchestration service that lets you define an application workflow as a series of event-driven steps. Each step in the workflow is called a state. You most commonly use states, such as Task state, Choice, Parallel, and Map, to define your
workflows. Within Task
states, you can use the AWS SDK integrations that Step Functions supports and orchestrate multiple AWS services in your workflows.
Topics
- Key concepts
- Tutorials in this series
- Prerequisites
- Tutorial 1: Create the prototype for your state machine
- Tutorial 2: Define the first service integration using a Lambda function
- Tutorial 3: Implement an if-else condition in your workflow
- Tutorial 4: Define multiple tasks to perform in parallel
- Tutorial 5: Concurrently iterate over a collection of items
- Tutorial 6: Save the workflow and execute the state machine
- Tutorial 7: Configure input and output
- Tutorial 8: Debug errors in the console
Key concepts
Before you start the tutorials, review the following key Step Functions terms for context.
Term | Description |
---|---|
Workflow | A sequence of steps that often reflect a business process. |
States |
Individual steps in your state machine that can make decisions based on their input, perform actions from those inputs, and pass output to other states. For more information, see States. |
Workflow Studio |
A visual workflow designer that helps you to prototype and build workflows faster. For more information, see AWS Step Functions Workflow Studio. |
State machine | A workflow defined using JSON text representing the individual states or steps in the workflow along with fields, such as For more information, see State machine structure. |
Amazon States Language |
A JSON-based, structured language used to define your state machines. With ASL, you define a collection of states that can do work (Task state), determine which states to transition to next (Choice state), and stop an execution with an error (Fail state). For more information, see Amazon States Language. |
Input and output configuration |
States in a workflow receive JSON data as input and usually pass JSON data as output to the next state. Step Functions provides filters to control the data flow between states. For more information, see Input and Output Processing in Step Functions. |
Service integration |
You can call AWS service API actions from your workflow. For more information, see Using AWS Step Functions with other services. |
Service integration type |
|
Service integration pattern | When calling an AWS service, you use one of the following service integration patterns:
|
Execution |
State machine executions are instances where you run your workflow to perform tasks. For more information, see Executions in Step Functions. |
Tutorials in this series
After completing these tutorials, you'll have a workflow that simulates processing a credit card application. You'll learn how to use common states and integrate your workflow with other AWS services
Step Functions can be used to create many types of workflows, such as data processing, IT automation, machine learning, and media encoding.
The following flowchart depicts steps for a business to process a credit card application. If the amount of requested credit is under $5000, the credit limit will be automatically approved. If the request exceeds the limit, the workflow will add a human in the loop to verify the requestors identity and review credit scores.
The following diagram shows how the credit application business process steps are represented by states in a Step Functions workflow.
In the following series of tutorials, you will build the credit card processing workflow.
We recommend completing these tutorials in order to learn the key features of Step Functions.
Before you get started, make sure to complete the prerequisites.