A state machine is written in Amazon States Language (JSON). The simplest state is Pass: it copies its input to its output and does no work. It is useful to sketch a workflow before writing any code.
FCJ-* rule, so create the role in CloudShell. It trusts Step Functions and has no permissions yet:BOUNDARY=arn:aws:iam::$(aws sts get-caller-identity --query Account --output text):policy/LabPermissionsBoundary
aws iam create-role --role-name FCJ-SFN-Console-Role ${BOUNDARY:+--permissions-boundary $BOUNDARY} \
--assume-role-policy-document '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"states.amazonaws.com"},"Action":"sts:AssumeRole"}]}' \
--query 'Role.[RoleName,PermissionsBoundary.PermissionsBoundaryArn]' --output text
FCJ-SFN-Console-Role is created with the permissions boundary.
Open the Step Functions console, choose State machines (1) and Create state machine.

In the dialog:
Process_New_Account_Applications.
Choose Code (1) and replace the definition with the JSON below (2). The graph shows three Pass states.
{
"StartAt": "Check Name",
"States": {
"Check Name": {
"Type": "Pass",
"Next": "Check Address"
},
"Check Address": {
"Type": "Pass",
"Next": "Approve Application"
},
"Approve Application": {
"Type": "Pass",
"End": true
}
}
}

Choose Config. In Permissions, open Execution role, type FCJ-SFN to filter the list and choose FCJ-SFN-Console-Role (1). Leave the other settings and choose Create.

QueryLanguage. All definitions in this workshop use JSONPath.
The full specification of Amazon States Language is at states-language.net.
{
"application": {
"name": "Spock",
"address": "123 Enterprise Street"
}
}

The execution Succeeded (1). It only moved through the three Pass states.

Scroll to Graph view and choose a state, for example Check Address (1). Input/Output (2) shows that a Pass state returns its input unchanged.
