From fed0a453112511685aabef3a2877c6cf937fd251 Mon Sep 17 00:00:00 2001 From: Jeremy Giberson Date: Mon, 12 Oct 2020 16:30:03 -0700 Subject: [PATCH] use partition pseudo variable for compatibility with gov-cloud --- src/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.js b/src/plugin.js index 8083bf5..6053bfc 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -68,10 +68,10 @@ class Alarm { Threshold: properties.value, ComparisonOperator: 'GreaterThanOrEqualToThreshold', AlarmActions: [ - { 'Fn::Join': [ '', [ 'arn:aws:sns:' + this.region + ':', { 'Ref': 'AWS::AccountId' }, ':' + this.topic ] ] } + { 'Fn::Join': [ '', [ 'arn:', { 'Ref': 'AWS::Partition' }, ':sns:' + this.region + ':', { 'Ref': 'AWS::AccountId' }, ':' + this.topic ] ] } ], OKActions: [ - { 'Fn::Join': [ '', [ 'arn:aws:sns:' + this.region + ':', { 'Ref': 'AWS::AccountId' }, ':' + this.topic ] ] } + { 'Fn::Join': [ '', [ 'arn:', { 'Ref': 'AWS::Partition' }, ':sns:' + this.region + ':', { 'Ref': 'AWS::AccountId' }, ':' + this.topic ] ] } ] } }