Howto specify 'Raw Message Delivery' for an SNS subscription using AWS CloudFormation?

后端 未结 2 1157
灰色年华
灰色年华 2021-01-18 09:33

I\'ve got an AWS CloudFormation template that creates an SNS topic and a subscription:

\"AcceptedTopic\":{
            \"Type\": \"AWS::SNS::Topic\"         


        
2条回答
  •  醉酒成梦
    2021-01-18 10:13

    As of this writing, AWS CloudFormation doesn't support that natively. As an alternate, you can create a Lambda-backed custom resource to get around this limitation and set that attribute using set-subscription-attributes instead. Here are some helpful resources to help accomplish that:

    • Lambda-backed custom resources
    • SNS' set-subscription-attributes API

提交回复
热议问题