[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-sns-sqs-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":33,"level":34,"meta":35,"patternArch":36,"resources":50,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fsns-sqs-terraform.json","Amazon SNS to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>terraform destroy --auto-approve\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\u002Fnicolas-diez.json",{"text":15},[16,17],"terraform init","terraform apply --auto-approve","Create an SQS queue that subscribes to an SNS topic.","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"sns-sqs-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsns-sqs-terraform","serverless-patterns\u002Fsns-sqs-terraform","main.tf",{"headline":28,"text":29},"How it works",[30,31,32],"This sample project demonstrates how to use a SQS queue to receive messages published on a SNS topic.","This pattern creates the following resources: SNS topic, SQS queue, SNS topic subscription with SQS protocol, SQS queue resource policy for SNS to push messages.","This pattern can combined with any pattern using SQS as source to build the infrastructure answering the desired goal, for example SQS to Lambda pattern.","Integration","100",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"sns","SNS",{"x":43,"y":39,"service":44,"label":45},80,"sqs","SQS",{"from":47,"to":48,"label":49},"icon1","icon2","",{"headline":51,"bullets":52},"Additional resources",[53,56],{"text":54,"link":55},"SNS fanout to SQS queues","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-sqs-as-subscriber.html",{"text":57,"link":58},"Choosing between messaging services for serverless applications","https:\u002F\u002Faws.amazon.com\u002Ffr\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F","patterns\u002Fsns-sqs-terraform",{"headline":61,"text":62},"Testing",[63],"See the GitHub repo for testing instructions.","XpqYVfWUnQZ9_kcgOLgbGCDr9OxgaWbHEADtMmuyCO0",1778846888204]