[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-sns-sqs-lambda-rust-sam":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":52,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fsns-sqs-lambda-rust-sam.json","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\u002Fdaniele-frasca.json",{"text":15},[16],"sam deploy --guided","Create an SQS queue that subscribes to an SNS topic, publishing to Lambda.","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"sns-sqs-lambda-rust-sam","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsns-sqs-lambda-rust-sam","serverless-patterns\u002Fsns-sqs-lambda-rust-sam","template.yml",{"headline":27,"text":28},"How it works",[29],"The SAM template deploys a SNS topic and an SQS queue. The SQS queue is subscribed to the SNS topic. SNS invokes the SQS queue when new messages are available. When messages are sent to the SNS topic, they are delivered as a JSON event payload to the SQS queue. SQS invokes the Lambda function when new messages are available.","Rust","100",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"sns","SNS",{"x":36,"y":36,"service":40,"label":41},"sqs","SQS",{"x":43,"y":36,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48,"label":49},"icon1","icon2","",{"from":48,"to":51,"label":49},"icon3",{"headline":53,"bullets":54},"Additional resources",[55,58],{"text":56,"link":57},"Choosing between messaging services for serverless applications.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F",{"text":59,"link":60},"Fanout to Amazon SQS queues","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-sqs-as-subscriber.html","patterns\u002Fsns-sqs-lambda-rust-sam",{"headline":63,"text":64},"Testing",[65],"See the GitHub repo.","kdfezUsjIXMzKEVHBprxo-rGp4SHjqF8qj232Asg92Y",1778846888190]