Home > Software design >  How to use email dynamic list to SNS Topic Subscription in AWS CloudFormation?
How to use email dynamic list to SNS Topic Subscription in AWS CloudFormation?

Time:03-22

My templaste is (for one emeil):

  Parameters:
    MailAlarmsSNS:
       Type: String
       Default: [email protected]

  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)?

CodePudding user response:

You can only do that using custom resource or a macro that you would have to develop yourself in the form of lambda functions.

  • Related