Amazon API Gateway to AWS Step Functions to Amazon DynamoDB

API Gateway → Step Functions → Amazon DynamoDB

API Gateway REST API endpoint to Step Functions to DynamoDB

This SAM template creates a API Gateway REST endpoint that uses an IAM role with StartExecution permissions on Step Functions deployed by the same SAM template.
The Step Functions workflow persists information received as input from the API Gateway endpoint to a DynamoDB table. An IAM role is used to ensure that write permissions only to Step Functions.

< 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/apigw-rest-stepfunction

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:

Tiago Barbosa

Tiago Barbosa

Tiago is a Senior Specialist Solutions Architect on the Developer Acceleration team (DevAx) at Amazon Web Services. Passionate Application Developer. ex-Microsoft.