[{"data":1,"prerenderedAt":79},["ShallowReactive",2],{"pattern-s3-sns-sqs-lambda-sam-java":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":34,"level":35,"meta":36,"patternArch":37,"resources":64,"s3URL":6,"services":6,"stem":73,"testing":74,"videoId":6,"__hash__":78},"patterns\u002Fpatterns\u002Fs3-sns-sqs-lambda-sam-java.json","Amazon S3 to Amazon SNS to Amazon SQS to AWS Lambda",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\u002Frazvan-minciuna.json",{"text":15},[16],"sam deploy --guided --capabilities CAPABILITY_IAM","Sends notifications from S3 to SNS to SQS to Lambda when an object is created.","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"s3-sns-sqs-lambda-sam-java","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-sns-sqs-lambda-sam-java","serverless-patterns\u002Fs3-sns-sqs-lambda-sam-java","template.yml",{"headline":27,"text":28},"How it works",[29,30,31,32,33],"This SAM template creates one S3 bucket, one SNS topic, one SQS queue and one Lambda function.","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 SNS topic whenever an .png object is deleted. SNS has two subscribers, one SQS queue and one Lambda function. The Lambda function will be triggered whenever a new file is deleted in the S3 bucket. The SQS will also receive the deleted object event from the SNS topic.","This is fully functional example implemented in Java 11.","Java","200",{},{"icon1":38,"icon2":43,"icon3":47,"icon4":52,"line1":56,"line2":60,"line3":62},{"x":39,"y":40,"service":41,"label":42},20,50,"s3","Amazon S3",{"x":44,"y":40,"service":45,"label":46},40,"sns","Amazon SNS",{"x":48,"y":49,"service":50,"label":51},80,30,"sqs","Amazon SQS",{"x":48,"y":53,"service":54,"label":55},70,"lambda","AWS Lambda",{"from":57,"to":58,"label":59},"icon1","icon2","",{"from":58,"to":61,"label":59},"icon3",{"from":58,"to":63,"label":59},"icon4",{"headline":65,"bullets":66},"Additional resources",[67,70],{"text":68,"link":69},"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":71,"link":72},"Choosing between messaging services for serverless applications","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F","patterns\u002Fs3-sns-sqs-lambda-sam-java",{"headline":75,"text":76},"Testing",[77],"See the GitHub repo for detailed testing instructions.","CS2EsoH0Wjnzu5gc1ONKGfiFi9GqDxKi6V7zQunffMk",1779273338905]