[英]How to use email dynamic list to SNS Topic Subscription in AWS CloudFormation?
My templaste is (for one emeil):我的模板是(一个emeil):
Parameters:
MailAlarmsSNS:
Type: String
Default: mymail@company.com
MessagesInErrorTopic:
Type: AWS::SNS::Topic
Properties:
TopicName: foo
DisplayName: This topic is used to send an email
Subscription:
- Endpoint: !Ref MailAlarmsSNS
Protocol: email
I want use a dynamic list input (comma separated)?我想使用动态列表输入(逗号分隔)?
You can only do that using custom resource or a macro that you would have to develop yourself in the form of lambda functions.您只能使用自定义资源或必须以 lambda 函数的形式自行开发的宏来执行此操作。
As stated by @Marcin, you typically need to use a custom resource or macro for that.正如@Marcin 所述,您通常需要为此使用自定义资源或宏。 This repository gives you complete code using the custom resource to add multiple endpoints.此存储库为您提供使用自定义资源添加多个端点的完整代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.