Firstly create a directory with a /state-machines sub-directory and a /blueprint.json file:
Edit the content of the /blueprint.json file, so it looks like:
The important takeaway here is that our blueprint is named ‘helloWorld’ and it will live within the ‘tutorial’ namespace. Blueprints which share the same namespace can refer to each other’s components. The rest of the blueprint.json is meta tinsel.
Now we need to define a state machine for Tymly to execute
Create a /state-machines/hello-world.json file:
…and edit its content to:
That’s the blueprint finished!
- The keys of the ‘States’ object are the unique names for each state in the State Machine. So in this example we’re working with one state with the name HelloWorld
- The ‘StartsAt’ property is mandatory: it indicates the first state which to run when the State Machine is executed
- Please see the Amazon States Language specification for further information about how to conjure a State Machine