【问题标题】:AWS CLI SNS Subscribe with multiple email addressAWS CLI SNS 使用多个电子邮件地址订阅
【发布时间】:2019-01-14 22:42:54
【问题描述】:

如何通过 CLI 订阅具有多个电子邮件地址的 SNS 主题?

单次订阅进展顺利,如下所示

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

当我尝试使用 (, 或空格) 提交多封电子邮件时,它不起作用。有可能吗?

【问题讨论】:

  • 您可以在 AWS 控制台中执行此操作吗?不可以。您必须使用不同的电子邮件地址多次运行。
  • 能够在控制台中使用逗号 (,) 分隔的电子邮件 ID 执行此操作.. 但不能在 CLI 中完成

标签: amazon-web-services aws-cli amazon-sns


【解决方案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

【讨论】:

    【解决方案2】:

    不,这是不可能的。请参阅这两篇文章:

    1. Amazon 采用多个订阅端点as a feature request。有人指出,Google GCM API 已经具备此功能。
    2. Amazon documentation notes 目前订阅多个电话号码或电子邮件的方式是创建多个订阅。

    【讨论】:

      猜你喜欢
      • 2022-10-20
      • 2021-04-20
      • 2021-03-27
      • 2021-05-14
      • 1970-01-01
      • 2023-01-29
      • 2021-04-02
      • 2011-03-16
      • 2014-12-26
      相关资源
      最近更新 更多