Skip to content

Commit 712173e

Browse files
committed
Started adding the ARN parameters to the cloudformation.
1 parent 63a73fc commit 712173e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

cloudformation.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ Resources:
6060
- "rds:CreateDBSnapshot"
6161
- "rds:DeleteDBSnapshot"
6262
Resource: "*"
63-
63+
SuccessSNSTopic:
64+
Type: "AWS::SNS::Topic"
65+
ErrorSNSTopic:
66+
Type: "AWS::SNS::Topic"
6467
BackupFunction:
6568
Type: AWS::Serverless::Function
6669
Properties:
@@ -78,6 +81,12 @@ Resources:
7881
Fn::Join:
7982
- ''
8083
- - '{"period_label": "day", "period_format": "%a%H-%M", "keep_count": 14,'
84+
- '"arn": "'
85+
- Ref: SuccessSNSTopic
86+
- '", '
87+
- '"error_arn": "'
88+
- Ref: ErrorSNSTopic
89+
- '", '
8190
- '"ec2_region_name": "'
8291
- Ref: AWS::Region
8392
- '", '
@@ -93,6 +102,12 @@ Resources:
93102
Fn::Join:
94103
- ''
95104
- - '{"period_label": "week", "period_format": "week-%U", "keep_count": 12,'
105+
- '"arn": "'
106+
- Ref: SuccessSNSTopic
107+
- '", '
108+
- '"error_arn": "'
109+
- Ref: ErrorSNSTopic
110+
- '", '
96111
- '"ec2_region_name": "'
97112
- Ref: AWS::Region
98113
- '", '

0 commit comments

Comments
 (0)