gpt4 book ai didi

amazon-web-services - 将电子邮件地址列表传递到 SNS 订阅端点

转载 作者:行者123 更新时间:2023-12-03 07:14:16 26 4
gpt4 key购买 nike

是否可以传递电子邮件地址列表作为 SNS 订阅的端点?

我有这样的东西

{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources" : {
"EmailSNSTopic": {
"Type" : "AWS::SNS::Topic",
"Properties" : {
"DisplayName" : "${display_name}"
}
},
"MySubscription": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"TopicArn" : { "Ref" : "EmailSNSTopic" },
"Endpoint" : "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="34525b5b74525b5b1a575b59" rel="noreferrer noopener nofollow">[email protected]</a>"
"Protocol" : "email"
}
}
},
"Outputs" : {
"ARN" : {
"Description" : "Email SNS Topic ARN",
"Value" : { "Ref" : "EmailSNSTopic" }
}
}
}

但我想做的是传递多个电子邮件地址,而不是仅一个。

最佳答案

根据 documentation

Endpoint should be a string

Cloudformation 不允许您传递列表。

您也不希望拥有自定义资源。

还有一种方法Running bash commands in AWS CloudFormation templates

您只需运行 awscli command像下面这样

    Resources:
Command:
Type: 'AWSUtility::CloudFormation::CommandRunner'
Properties:
Command: aws s3 ls > /command-output.txt
Role: String
LogGroup: String #Optional
SubnetId: String #Optional
SecurityGroupId: String #Optional
KeyId: String #Optional

关于amazon-web-services - 将电子邮件地址列表传递到 SNS 订阅端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65739895/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com