[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-lambda-s3-rust":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":56,"stem":57,"testing":58,"videoId":46,"__hash__":64},"patterns\u002Fpatterns\u002Flambda-s3-rust.json","AWS Lambda to Amazon S3",null,{"headline":8,"text":9},"Cleanup",[10,11],"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>",[13],"content\u002Fcontributors\u002Fdaniele-frasca.json",{"text":15},[16],"sam deploy --guided","Creates a Lambda function that writes to an S3 bucket.","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"lambda-s3-rust","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-s3-rust","serverless-patterns\u002Flambda-s3-rust","template.yml",{"headline":27,"text":28},"How it works",[29],"This SAM template creates a Lambda function that writes to an S3 bucket when invoked. After deployment, enter the name of the destination bucket for the objects to be stored.","Rust","100",{},{"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,"s3","Amazon S3",{"from":44,"to":45,"label":46},"icon1","icon2","",{"headline":48,"bullets":49},"Additional resources",[50,53],{"text":51,"link":52},"Using serverless backends to iterate quickly on web apps – part 1","https:\u002F\u002Fserverlessland.com\u002Fblog\u002Fusing-serverless-backends-to-iterate-quickly-on-web-apps--part-1",{"text":54,"link":55},"S3-to-Lambda application patterns","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fs3-to-lambda-patterns",{"from":37,"to":41},"patterns\u002Flambda-s3-rust",{"headline":59,"text":60},"Testing",[61,62,63],"1. You can test the solution by accessing the Lambda console, finding the Lambda function, and clicking Test in the Code Source section.","2. You can also invoke the function from the CLI using \u003Ccode>aws lambda invoke --function-name ENTER_FUNCTION_NAME output.txt\u003C\u002Fcode>.","3. Go to the S3 console, locate the deployed S3 bucket, and view the object has been written.","CJrUf7H0T3el6LDD7K-5GbxiJ8w3Ex1MHsyjLXh9piw",1778846886507]