简体   繁体   English

创建AWS SNS主题和SQS队列以及向主题订阅队列的推荐方法

[英]Recommended way to create AWS SNS topics and SQS queues and subscribing queues to topics

We have dozen SNS topics and SQS queues that subscribe to those topics. 我们有十二个SNS主题和订阅这些主题的SQS队列。 We want to automate the process of creating topics and queues and subscribing queues to topics so it is easily set up on different environments. 我们希望自动化创建主题和队列以及将队列订阅主题的过程,以便可以轻松地在不同环境中进行设置。 Is there a recommended approach for this? 有建议的方法吗? Or if someone can steer me in the right direction based on their experiences. 或者,如果有人可以根据他们的经验指引我正确的方向。 Thank you 谢谢

Your best approach could possibly be use cloudformation templates. 最好的方法可能是使用cloudformation模板。

https://docs.aws.amazon.com/sns/latest/dg/SendMessageToSQS.cloudformation.html https://docs.aws.amazon.com/sns/latest/dg/SendMessageToSQS.cloudformation.html

The only problem is that you'll easily find yourself going doing a deep rabbit hole so beware 唯一的问题是,您很容易发现自己正在钻深兔子洞,所以要当心

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM