How do I specify "Raw Message Delivery" for SNS subscription using AWS CloudFormation?

I have an AWS CloudFormation template that creates an SNS theme and a subscription:

"AcceptedTopic":{
            "Type": "AWS::SNS::Topic",
            "Properties": {
                "DisplayName": {"Fn::Join": ["", ["Accepted-", {"Ref": "Env"}]]},
                "TopicName": {"Fn::Join": ["", ["Accepted-", {"Ref": "Env"}]]},
                "Subscription": [{
                    "Endpoint": {"Fn::GetAtt" : [ "SomeQueue" , "Arn" ]},
                    "Protocol": "sqs"
                }]
            }
        }

I need to specify the attribute attribute "Raw Message Delivery". How can I do this in AWS CloudFormation?

+4
source share
1 answer

At the time of this writing, AWS CloudFormation does not support this natively. Alternatively, you can create a custom resource with Lambda support to work around this limitation and set this attribute instead set-subscription-attributes. Here are some useful resources to help you accomplish this:

+2

Source: https://habr.com/ru/post/1615608/


All Articles