Bootstrap FreeKB - Amazon Web Services (AWS) - List Step Function State Machines using the AWS CLI
Amazon Web Services (AWS) - List Step Function State Machines using the AWS CLI


This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.

Step Functions can be used to submit a request to your one of your API Gateway Routes. For example, let's say you have an API Gateway Route https://abcdefg123.execute-api.us-east-1.amazonaws.com/foo that returns JSON "greeting": "Hello World", like this.

~]$ curl --request GET --url https://abcdefg123.execute-api.us-east-1.amazonaws.com/foo
{"greeting": "Hello World"}

 

A Step Function State Machine can be used to forwards requests onto the API Gateway Route

The aws stepfunctions list-state-machines command can be used to list your Step Function State Machines.

~]$ aws stepfunctions list-state-machines
{
    "stateMachines": [
        {
            "type": "STANDARD",
            "creationDate": 1703644772.497,
            "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine",
            "name": "myStateMachine"
        }
    ]
}

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 7fd675 in the box below so that we can be sure you are a human.