[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-s3-lambda-resizing-python":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":24,"introBox":25,"language":30,"level":31,"meta":32,"patternArch":33,"resources":50,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Fs3-lambda-resizing-python.json","Resizing images uploaded to Amazon S3 with AWS Lambda (Python)",null,{"text":8},[9],"Delete the application: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fseshu-brahma.json",{"text":13},[14],"sam deploy --guided","Create an AWS Lambda function that resizes images uploaded to Amazon S3.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-resizing-python","serverless-patterns\u002Fs3-lambda-resizing-python","s3-lambda-resizing-python","template.yaml","true",{"headline":26,"text":27},"How it works",[28,29],"A Lambda function consumes events from an Amazon S3 bucket. The Lambda code checks the uploaded file is an image, creates a thumbnail version of the image, then uploads the thumbnail to the destination bucket.","This pattern deploys a Lambda function and two S3 buckets.","Python","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":44,"line2":48},{"x":35,"y":36,"service":37,"label":38},20,50,"s3","Amazon S3",{"x":36,"y":36,"service":40,"label":41},"lambda","AWS Lambda",{"x":43,"y":36,"service":37,"label":38},80,{"from":45,"to":46,"label":47},"icon1","icon2","Object Created",{"from":46,"to":49},"icon3",{"bullets":51},[52],{"text":53,"link":54},"Process S3 events with Lambda","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3.html","patterns\u002Fs3-lambda-resizing-python",{"text":57},[58],"See the GitHub repo for detailed testing instructions.","BIIah8bkhNnWj1iJyZmYHu2rkPGf4JWgMG-tETLesaQ",1782124509825]