[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-lambda-sfn-rust":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":30,"level":31,"meta":32,"patternArch":33,"resources":46,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":29,"__hash__":60},"patterns\u002Fpatterns\u002Flambda-sfn-rust.json","AWS Lambda to AWS Step Functions",null,{"text":8},[9,10],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[12],"content\u002Fcontributors\u002Fdaniele-frasca.json",{"text":14},[15],"sam deploy --guided","Invoke an AWS Step Functions workflow from AWS Lambda, with logging enabled","json","AWS SAM",{"template":20},{"projectFolder":21,"repoURL":22,"templateURL":23,"templateFile":24},"lambda-sfn-rust","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-sfn-rust","serverless-patterns\u002Flambda-sfn-rust","template.yml",{"headline":26,"text":27,"test":29},"How it works",[28],"The SAM template deploys a Lambda function, a Step Functions Express workflow, a Log group and the IAM resources required to run the application. A Lambda function uses the AWS SDK to asyncronously invoke the Express workflow, passing the event body as a string. The Express Workflow results are logged in Amazon CloudWatch Logs. The Lambda function returns the Express Workflow execution ARN and startDate.","","Rust","300",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"lambda","AWS Lambda",{"x":40,"y":36,"service":41,"label":42},80,"sfn","Step Functions",{"from":44,"to":45,"label":29},"icon1","icon2",{"headline":47,"bullets":48},"Additional resources",[49,52],{"text":50,"link":51},"Synchronous Express Workflows for AWS Step Functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnew-synchronous-express-workflows-for-aws-step-functions\u002F",{"text":53,"link":54},"Contact form processing with Synchronous Express Workflows","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fcontact-form-processing-with-synchronous-express-workflows","patterns\u002Flambda-sfn-rust",{"text":57},[58,59],"Run the following Lambda CLI invoke command to invoke the function. Note, you must edit the {LambdaProxyArn} placeholder with the ARN of the deployed Lambda function. This is provided in the stack outputs.","\u003Ccode>aws lambda invoke --function-name {LambdaProxyArn} --invocation-type Event --payload '{ \"IsHelloWorldExample\": \"Hello\" }' response.json --cli-binary-format raw-in-base64-out\u003C\u002Fcode>","-fvloUT3B3Ob0MGHMyE5vyoC4lm8febccpLN00xGU0E",1778846886569]