Invoke an AWS Step Functions workflow from AWS Lambda

AWS Lambda → AWS Step Functions

The pattern creates a Lambda function, and a Step Functions workflow, a Log group and the IAM resources required to run the application.

A Lambda function uses the AWS SDK to asyncronously invoke the Step Functionsworkflow, passing the event body. The Step Functionsworkflow showcasing the different States.

< 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/terraform-lambda-sfn

Deploy

terraform initterraform apply --auto-approve


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy

Created by:

Anton Babenko

Anton Babenko

AWS Hero, Terraform influencer, maintainer of Terraform AWS Modules, creator of serverless.tf, weekly.tf, modules.tf, and some more.

Follow on LinkedIn