cdk-step-functions-example
cdk-step-functions-example copied to clipboard
Learning CDK and Step Functions
I started with this highly useful but slightly outdated tutorial Create a Serverless Workflow.
I rewrote it in cdk.
Read my post on dev.to.
Now updated to CDK v2!
Useful commands
npm installdo this firstnpm run lintcheck your stylenpm testperform the jest unit testsnpx cdk bootstrapthe first time only to prep your environmentnpm run deploydeploy this stack to your default AWS account/regionnpx cdk diffcompare deployed stack with current statenpm run synthemits the synthesized CloudFormation templatenpx run destroyremoves your stack
Lambda functionss via SAM
npm run synthto create the template for SAM.sam local invoke <FN name from template.yaml> -e ./inputs/<JSON input>to run the function locally.