[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-lambda-sfn-java":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":54,"stem":55,"testing":56,"videoId":29,"__hash__":60},"patterns\u002Fpatterns\u002Flambda-sfn-java.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\u002Frazvan-minciuna.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-step-functions-sam-java","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-step-functions-sam-java","serverless-patterns\u002Flambda-step-functions-sam-java","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.","","Java","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","AWS Step Functions",{"from":44,"to":45,"label":29},"icon1","icon2",{"bullets":47},[48,51],{"text":49,"link":50},"Tutorial: Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":52,"link":53},"Blog Series: Building scalable serverless applications with Amazon S3 and AWS Lambda.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-scalable-serverless-applications-with-amazon-s3-and-aws-lambda\u002F",{"from":37,"to":41},"patterns\u002Flambda-sfn-java",{"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>","k7S2nFySQshh0ZahuNkztTZLcvEQpdOUpPTaVZ82oqA",1779273337735]