[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-s3-lambda-resizing-java":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":31,"level":32,"meta":33,"patternArch":34,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fs3-lambda-resizing-java.json","Resizing images uploaded to Amazon S3 with AWS Lambda (Java)",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fdhiraj-mahapatro.json",{"text":13},[14],"sam build && 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-java","serverless-patterns\u002Fs3-lambda-resizing-java","s3-lambda-resizing-java","template.yaml","true",{"headline":26,"text":27},"How it works",[28,29,30],"This sample project shows how to use a Java-based Lambda function to resize an image from a source S3 bucket and put the resized image in a destination S3 bucket.","When a new JPEG image is added to the source S3 bucket, an event gets triggered which invoks the Java-based Lambda function. The Lambda functions gets the object from the bucket, resizes it to 800x600 resolution, and puts the resized image in the destination bucket.","This pattern uses AWS SAM with Lambda SnapStart on ARM64 architecture on a Java 21 manged runtime.","Java","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":45,"line2":49},{"x":36,"y":37,"service":38,"label":39},20,50,"s3","Amazon S3",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":38,"label":39},80,{"from":46,"to":47,"label":48},"icon1","icon2","Object Created",{"from":47,"to":50},"icon3",{"bullets":52},[53,56],{"text":54,"link":55},"Effectively Running Java on Serverless","https:\u002F\u002Fs12d.com\u002Fserverless-java",{"text":57,"link":58},"Lambda SnapStart","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fsnapstart.html","patterns\u002Fs3-lambda-resizing-java",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","_43YoR6Kw_l7hdjN0iZLpD1DbUgYokJD6YSou7Xt7gs",1778846887401]