Create State Machine

Learn how to create AWS Step functions state machine.

As we already know the theory behind the AWS Step Functions, let's now learn how to create our first state machine within the AWS Console. We'll build it from scratch using the AWS Management Console's AWS Step Functions with a couple of approaches, including the Workflow Studio.

Previously, creating a state machine was only possible through the Amazon States Language. However, AWS now provides Workflow Studio, a visual tool that allows us to design workflows using a drag-and-drop interface. We will also build it from the templates provided by AWS.

Create a Hello World state machine

Let's navigate to the AWS Console and open the Step Functions service page.

Press + to interact
AWS Step Functions service page
AWS Step Functions service page

Click on “Get started.” We'll see the Hello World example with the ASL definition, which we can review. The example itself does not use any AWS services (like Lambda). It just uses different states, which we've gotten familiar with previously. This state machine is a simple example to showcase different state types and how they can be combined to create a more complex workflow. It helps users understand the basics of Amazon States Language and the behavior of various state types in the context of AWS Step Functions.

Press + to interact
Hello World example
Hello World example

Click on the “Next” button. Now we need to specify the details:

Press + to interact
Specify details of the Hello World state machine example
Specify details of the Hello World state machine example
  • What we need to do is select the name for our state machine—for example, in the illustration above, it is “MyHelloWorldExample.” Remember the name of ...