[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-s3-sqs-lambda-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":32,"level":33,"meta":34,"patternArch":35,"resources":53,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fs3-sqs-lambda-java.json","Amazon S3 to Amazon SQS to AWS Lambda",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 --capabilities CAPABILITY_IAM","Create a Lambda function that resizes images uploaded to S3 via SQS.","json","AWS SAM",{"template":20},{"projectFolder":21,"repoURL":22,"templateURL":23,"templateFile":24},"s3-sqs-lambda-sam-java","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-sqs-lambda-sam-java","serverless-patterns\u002Fs3-sqs-lambda-sam-java","template.yml",{"headline":26,"text":27},"How it works",[28,29,30,31],"The SAM template contains all the information to deploy AWS resources(one S3 bucket, one SQS queue and one Lambda function) and also the permission required by these service to communicate.","You will be able to create and delete the CloudFormation stack using the CLI commands.","The S3 will send notifications to an SQS queue when .png objects are deleted. The SQS will trigger and invoke a Lambda function which will display the object deleted as events.","This is fully functional example implemented in Java 11.","Java","200",{},{"icon1":36,"icon2":41,"icon3":44,"line1":48,"line2":51},{"x":37,"y":38,"service":39,"label":40},20,50,"s3","Amazon S3",{"x":38,"y":38,"service":42,"label":43},"sqs","Amazon SQS",{"x":45,"y":38,"service":46,"label":47},80,"lambda","AWS Lambda",{"from":49,"to":50},"icon1","icon2",{"from":50,"to":52},"icon3",{"headline":54,"bullets":55},"Additional resources",[56,59],{"text":57,"link":58},"Building resilient serverless patterns by combining messaging services","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-resilient-no-code-serverless-patterns-by-combining-messaging-services\u002F",{"text":60,"link":61},"S3-to-Lambda serverless applications","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fs3-to-lambda-patterns","patterns\u002Fs3-sqs-lambda-java",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","sfSperD2wUsVf9PnJDNLhzIVGKlOo57mEeshU-LktTs",1778927710983]