/sfn-lambda-vs-sfn-apigw

AWS Step Functions with Amazon API Gateway VS Step Functions with AWS Lambda

Primary LanguageTypeScriptMIT LicenseMIT

Step Functions with API Gateway integration or Lambda integration

This repository contains the source code for the blog post: Step Functions with API Gateway integration, good idea?

It is based on AWS CDK (Cloud Development Kit), provides one stack with 2 state machines:

  • one with API Gateway direct integration
  • one more common with Lambda

For more information, read the blog post.

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template