[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"pattern-lambda-s3-sfn":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":35,"level":36,"meta":37,"patternArch":38,"resources":51,"s3URL":63,"services":64,"stem":65,"testing":66,"videoId":29,"__hash__":71},"patterns\u002Fpatterns\u002Flambda-s3-sfn.json","Amazon S3 to AWS Step Functions Express Workflows",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Empty and delete the S3 bucket: \u003Ccode>aws s3 rm s3:\u002F\u002Flambda-s3-sfn-uploads --recursive\u003C\u002Fcode>","2. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","3. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[14],"content\u002Fcontributors\u002Falper-sunar.json",{"text":16},[17],"sam deploy --guided","Creates a Lambda function that stores a payload in S3 and starts an Express Workflow","json","AWS SAM",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"lambda-s3-sfn","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-s3-sfn","serverless-patterns\u002Flambda-s3-sfn","template.yaml",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33,34],"This pattern creates a Lambda function that puts an object to S3, which triggers a Step Functions Express Workflow.","This is useful when processing uploaded files larger than the current task execution limits.","Node.js","200",{},{"icon1":39,"icon2":44,"line1":48},{"x":40,"y":41,"service":42,"label":43},20,50,"s3","Amazon S3",{"x":45,"y":41,"service":46,"label":47},75,"sfn","Step Functions Express Workflows",{"from":49,"to":50,"label":29},"icon1","icon2",{"headline":52,"bullets":53},"Additional resources",[54,57,60],{"text":55,"link":56},"New Synchronous Express Workflows for AWS Step Functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnew-synchronous-express-workflows-for-aws-step-functions\u002F",{"text":58,"link":59},"Controlling concurrency in distributed systems using AWS Step Functions","https:\u002F\u002Fserverlessland.com\u002Fblog\u002Fcontrolling-concurrency-in-distributed-systems-using-aws-step-functions--aws-compute-blog",{"text":61,"link":62},"Standard vs. Express Workflows","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-standard-vs-express.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Flambda-s3-sfn\u002Fcloudformation.yml",{"from":42,"to":46},"patterns\u002Flambda-s3-sfn",{"headline":67,"text":68},"Testing",[69,70],"Run the following command to invoke the function to start the Step Functions workflow. Note:  edit the {SavePayloadAndStartStateMachineFunction} placeholder with the ARN of the deployed Lambda function. This is provided in the stack outputs. Replace the payload with something larger than the current task execution limit.","\u003Ccode>aws lambda invoke --function-name {SavePayloadAndStartStateMachineFunction}  --payload '{ \"payload\": \"hello world\"}' --cli-binary-format raw-in-base64-out response.json\u003C\u002Fcode>","J_O-eBJqJa3dsbNKfNCxjpW5sc5d7Xi2KQWL6mv6rd4",1782124508871]