AWS Step Functions to Amazon API Gateway

Step Functions → API Gateway

Create a Step Functions Express workflow that makes a call to a API Gateway REST endpoint

The Step Functions Standard Workflow can be started using the AWS CLI or from another service.
The SAM template deploys a Step Functions Standard workflow that makes a call to a API Gateway REST endpoint. This endpoint asyncronously invokes a Lambda function. The SAM template contains the minimum IAM resources required to run the application with logging enabled.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sfn-apigw

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Benjamin Smith

Benjamin Smith

Ben is a senior developer advocate for Serverless Applications at Amazon Web Services based in London, UK. Prior to joining AWS Ben worked in a number of different technical roles specializing in workflow Automation and web development.

Follow on LinkedIn