[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"pattern-sfn-lambda-vpc-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":17,"description":20,"extension":21,"framework":22,"gitHub":23,"highlight":6,"introBox":32,"language":36,"level":37,"meta":38,"patternArch":39,"resources":58,"s3URL":6,"services":67,"stem":68,"testing":69,"videoId":31,"__hash__":73},"patterns\u002Fpatterns\u002Fsfn-lambda-vpc-cdk.json","AWS Step Functions to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14,15,16],"content\u002Fcontributors\u002Fatul-sharma.json","content\u002Fcontributors\u002Fferoz-kumar.json","content\u002Fcontributors\u002Fjayesh-a-shinde.json",{"text":18},[19],"cdk deploy","Create an Step Functions state machine to call a VPC-enabled Lambda function","json","AWS CDK",{"template":24,"payloads":29},{"projectFolder":25,"repoURL":26,"templateURL":27,"templateFile":28},"cdk-vpc-lambda-sfn","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcdk-vpc-lambda-sfn","serverless-patterns\u002Fcdk-vpc-lambda-sfn","app.ts",[30],{"headline":31,"payloadURL":31},"",{"headline":33,"text":34},"How it works",[35],"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.","Node.js","200",{},{"group1":40,"icon1":46,"icon2":51,"line1":55},{"x":41,"y":42,"w":43,"h":44,"label":45},60,15,38,70,"VPC",{"x":47,"y":48,"service":49,"label":50},20,50,"sfn","Step Functions",{"x":52,"y":48,"service":53,"label":54},80,"lambda","AWS Lambda",{"from":56,"to":57,"label":31},"icon1","icon2",{"headline":59,"bullets":60},"Additional resources",[61,64],{"text":62,"link":63},"Synchronous Express Workflows for AWS Step Functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnew-synchronous-express-workflows-for-aws-step-functions\u002F",{"text":65,"link":66},"Contact form processing with Synchronous Express Workflows","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fcontact-form-processing-with-synchronous-express-workflows",{"from":49,"to":53},"patterns\u002Fsfn-lambda-vpc-cdk",{"headline":70,"text":71},"Testing",[72],"See the GitHub repo for detailed testing instructions.","pXayoXXvawFgpTTbursfkPFJ3AryYvrgxCYPVbwbOos",1778846887903]