AWS Step Functions to AWS Lambda

Step Functions → AWS Lambda

Create an Step Functions state machine to call a VPC-enabled Lambda function

This CDK pattern generates an AWS Step Functions state machine which calls an AWS Lambda function deployed inside an AWS VPC. The Lambda Function is created with access to the VPC's private subnet.

< 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/cdk-vpc-lambda-sfn

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Atul Sharma

Atul Sharma

Atul is Sr. Cloud Application Architect at AWS Pro-serve India.

Feroz Kumar

Feroz Kumar

Feroz is Cloud Application Consultant at AWS Pro-serve India.

Jayesh A Shinde

Jayesh A Shinde

Jayesh is Cloud Application Architect at AWS Pro-serve India.