amazon-web-services - 如何在AWS CloudFormation中使用电子邮件动态列表进行SNS主题订阅?

标签 amazon-web-services aws-cloudformation amazon-sns

我的模板是(一个电子邮件):

  Parameters:
    MailAlarmsSNS:
       Type: String
       Default: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2f4256424e46436f4c40425f4e4156014c4042" rel="noreferrer noopener nofollow">[email protected]</a>

  MessagesInErrorTopic:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: foo
      DisplayName: This topic is used to send an email
      Subscription:
        - Endpoint: !Ref MailAlarmsSNS
          Protocol: email

我想使用动态列表输入(逗号分隔)?

最佳答案

您只能使用custom resource来做到这一点或 macro您必须以 lambda 函数的形式开发自己。

关于amazon-web-services - 如何在AWS CloudFormation中使用电子邮件动态列表进行SNS主题订阅?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71560384/

相关文章:

amazon-web-services - 在发送到 SNS 之前,我可以使用 Amazon SQS 作为延迟队列吗?

linux - 如何在 Amazon Web Service 的 Linux 实例上将 firefox 添加到系统 PATH?

ssh - 为 AWS EC2 实例创建私钥

linux - 无法在 Amazon Linux AMI 中解压缩上传的文件

amazon-web-services - 云形成模板中Json格式错误

aws-cloudformation - 如何使用 aws cloudformation 或 aws cdk 设置 aws aurora mysql 表?

amazon-web-services - AWS : DB Instance quota exceeded

amazon-web-services - AWS SNS - 尝试在 aws 上保存文本消息首选项时出错

linux - 在 Amazon Linux 上获取或安装 HAProxy 1.6(EPEL 中只有 1.5)

amazon-web-services - Amazon SNS 消息的预期 SLA(服务级别协议(protocol))是什么?