Amazon SNS multiple subscriptions of the same endpoint

末鹿安然 提交于 2020-01-15 09:55:09

问题


I noticed that if I try to create a subscription between a topic and a SQS queue twice, Amazon actually creates only a single one.

aws sns subscribe --topic-arn arn:aws:sns:ap-southeast-2:909420746768:bar --protocol sqs --notification-endpoint arn:aws:sqs:ap-southeast-2:909420746768:foo --region=ap-southeast-2
{
    "SubscriptionArn": "arn:aws:sns:ap-southeast-2:909420746768:bar:39d8296e-18e3-4367-b10b-edd5af266f69"
}

-- if I call this command twice, the same SubscriptionArn is returned each time. If I call list-subscriptions, it will return a list with the single item too.

Cannot find the description of this behavior anywhere in Amazon's documentation, is it mentioned somewhere? Is it uniform across all protocols?

Thank you.

来源:https://stackoverflow.com/questions/48016591/amazon-sns-multiple-subscriptions-of-the-same-endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!