使用AWS CLI订阅多个电子邮件地址的SNS

3
如何通过CLI订阅具有多个电子邮件地址的SNS主题?
单个订阅的方法如下所示。
aws sns subscribe --topic-arn arn:aws:sns:ap-southeast-2:nnnnnn:abcd --protocol email --notification-endpoint  email1@gmail.com

当我尝试使用逗号或空格提交到多个电子邮件时,它无法正常工作。这种情况是否可能发生?

1
你能在AWS控制台中完成这个吗?不行。你必须使用不同的电子邮件地址多次运行此操作。 - helloV
可以在控制台中使用逗号(,)分隔的电子邮件ID来完成此操作,但不能在CLI中完成。 - suj
2个回答

1

同样的问题,我用两行 Cli 命令解决了,示例如下:

  • aws sns subscribe --topic-arn arn:aws:sns:ap-southeast-2:nnnnnn:abcd --protocol email --notification-endpoint email1@gmail.com

  • aws sns subscribe --topic-arn arn:aws:sns:ap-southeast-2:nnnnnn:abcd --protocol email --notification-endpoint email2@gmail.com


1
不,这是不可能的。请参阅以下两篇文章:
  1. 亚马逊将多个订阅端点作为功能请求之一。有人指出Google GCM API已经具备了这个功能。
  2. 亚马逊文档说明目前订阅多个电话号码或电子邮件的方法是创建多个订阅。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接