Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.22 KB

File metadata and controls

35 lines (27 loc) · 1.22 KB

CREATE FIRST STATE MACHINE USING AMAZON STATES LANGUAGE (ASL)

1. CREATE THE STATE MACHINE (BY CONSOLE)

  • Go to Step Functions console
  • Choose Get started
  • Select Templates
  • Select Hello world template
  • Under Details, enter the state machine name. In this case, Helloworld
  • Under IAM role, select I will use an existing role
  • Under Existing IAM roles, select StatesExecutionRole
  • Under State machine definition, enter the code from Project 1
  • Choose Create state machine

2. TEST

(A) SETTING AND EXECUTING THE TEST

  • Choose Start execution
  • Under Enter an execution name - optional, enter a specific execution name. If not desirable, AWS will do it automatically
  • Under Input - opcional, you can set the input data for the state machine (JSON format)
{
  "message": "This is my first state machine"
}
  • Choose Start execution

(B) VISUAL WORKFLOW

  • In Visual workflow, you can see if the test was successful
  • In Code, you can see the corresponding ASL code
  • Under Execution event history, we can see the history of events