Permalink
Branch: master
Find file Copy path
efa1090 Aug 15, 2018
1 contributor

Users who have contributed to this file

75 lines (75 sloc) 2.19 KB
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"CarSalesTopic": {
"Type": "AWS::SNS::Topic"
},
"ERPSubscription": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"TopicArn": {
"Ref": "CarSalesTopic"
},
"Endpoint": {
"Fn::GetAtt": ["ERPIntegrationQueue", "Arn"]
},
"Protocol": "sqs",
"RawMessageDelivery": "true"
}
},
"CRMSubscription": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"TopicArn": {
"Ref": "CarSalesTopic"
},
"Endpoint": {
"Fn::GetAtt": ["CRMIntegrationQueue", "Arn"]
},
"Protocol": "sqs",
"RawMessageDelivery": "true",
"FilterPolicy": {
"buyer-class": [
"vip"
]
}
}
},
"SCMSubscription": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"TopicArn": {
"Ref": "CarSalesTopic"
},
"Endpoint": {
"Ref": "myHttpEndpoint"
},
"Protocol": "https",
"DeliveryPolicy": {
"healthyRetryPolicy": {
"numRetries": 20,
"minDelayTarget": 10,
"maxDelayTarget": 30,
"numMinDelayRetries": 3,
"numMaxDelayRetries": 17,
"numNoDelayRetries": 0,
"backoffFunction": "exponential"
}
}
}
},
"ERPIntegrationQueue": {
"Type": "AWS::SQS::Queue",
"Properties": {}
},
"CRMIntegrationQueue": {
"Type": "AWS::SQS::Queue",
"Properties": {}
}
},
"Parameters": {
"myHttpEndpoint": {
"Type": "String"
}
}
}