Skip to content

Commit

Permalink
add SNS delivery policy (#2)
Browse files Browse the repository at this point in the history
add SNS delivery policy
  • Loading branch information
michaelwittig authored Sep 16, 2018
1 parent 92188ab commit d85466b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
18 changes: 18 additions & 0 deletions module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,31 @@ Resources:
Condition: HasHttpEndpoint
Type: 'AWS::SNS::Subscription'
Properties:
DeliveryPolicy:
healthyRetryPolicy:
minDelayTarget: 1
maxDelayTarget: 60
numRetries: 100
numNoDelayRetries: 0
backoffFunction: exponential
throttlePolicy:
maxReceivesPerSecond: 1
Endpoint: !Ref HttpEndpoint
Protocol: http
TopicArn: !Ref Topic
HttpsEndpointSubscription:
Condition: HasHttpsEndpoint
Type: 'AWS::SNS::Subscription'
Properties:
DeliveryPolicy:
healthyRetryPolicy:
minDelayTarget: 1
maxDelayTarget: 60
numRetries: 100
numNoDelayRetries: 0
backoffFunction: exponential
throttlePolicy:
maxReceivesPerSecond: 1
Endpoint: !Ref HttpsEndpoint
Protocol: https
TopicArn: !Ref Topic
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cfn-modules/alerting",
"version": "0.0.5",
"version": "0.0.6",
"description": "Central SNS topic that receives alerts from other modules and forwards them to your team via email, HTTP, or HTTPS",
"author": "Michael Wittig <michael@widdix.de>",
"license": "Apache-2.0",
Expand Down
9 changes: 5 additions & 4 deletions test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dependencies": {
"eslint": "5.1.0",
"ava": "0.25.0",
"@cfn-modules/test": "^0.1.2",
"@cfn-modules/test": "^0.2.0",
"@cfn-modules/alerting": "file:../"
},
"scripts": {
Expand Down

0 comments on commit d85466b

Please sign in to comment.