Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 7e157c5

Browse files
authored
Merge pull request #31 from chef-customers/better_notifications
Adding SNS notifications for RDS and AutoScalingGroup
2 parents 26d63b2 + 45318d0 commit 7e157c5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

backendless_chef.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AWSTemplateFormatVersion: '2010-09-09'
2-
Description: AWS Native Chef Server v3.2.0
2+
Description: AWS Native Chef Server v3.3.0
33

44
Parameters:
55
# Required Parameters
@@ -299,6 +299,13 @@ Resources:
299299
- !Ref ChefPJELB
300300
MaxSize: '1'
301301
MinSize: '1'
302+
NotificationConfigurations:
303+
- TopicARN: !Ref AlertNotificationTopic
304+
NotificationTypes:
305+
- autoscaling:EC2_INSTANCE_LAUNCH
306+
- autoscaling:EC2_INSTANCE_LAUNCH_ERROR
307+
- autoscaling:EC2_INSTANCE_TERMINATE
308+
- autoscaling:EC2_INSTANCE_TERMINATE_ERROR
302309
Tags:
303310
- Key: Name
304311
Value: !Sub ${AWS::StackName}-bootstrap-frontend
@@ -323,6 +330,13 @@ Resources:
323330
- !Ref ChefTargetGroup
324331
MaxSize: !Sub '${MaxFrontendInstances}'
325332
MinSize: !Sub '${MinFrontendInstances}'
333+
NotificationConfigurations:
334+
- TopicARN: !Ref AlertNotificationTopic
335+
NotificationTypes:
336+
- autoscaling:EC2_INSTANCE_LAUNCH
337+
- autoscaling:EC2_INSTANCE_LAUNCH_ERROR
338+
- autoscaling:EC2_INSTANCE_TERMINATE
339+
- autoscaling:EC2_INSTANCE_TERMINATE_ERROR
326340
Tags:
327341
- Key: Name
328342
Value: !Sub ${AWS::StackName}-frontend
@@ -965,6 +979,14 @@ Resources:
965979
- Key: X-Contact
966980
Value: !Ref ContactEmail
967981

982+
RdsEventSubscription:
983+
Type: AWS::RDS::EventSubscription
984+
Properties:
985+
SnsTopicArn: !Ref AlertNotificationTopic
986+
SourceIds:
987+
- !Ref DBPostgres
988+
SourceType: db-instance
989+
968990
# ElasticSearch
969991
#########################################################################################
970992
ESSecurityGroup:

0 commit comments

Comments
 (0)