Skip to content

Commit cad614b

Browse files
committed
use parameter for email address
1 parent 357b2f1 commit cad614b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.ebextensions/env.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
Parameters:
2+
EmailAddress:
3+
Type: String
4+
5+
16
option_settings:
27
aws:elasticbeanstalk:customoption:
38
NotificationEmail: [email protected]
49
aws:elasticbeanstalk:application:environment:
510
AWS_REGION: '`{"Ref" : "AWS::Region"}`'
611
NOTIFICATION_TOPIC: '`{"Ref" : "NotificationTopic"}`'
12+
NOTIFICATION_EMAIL: '`{"Ref" : "EmailAddress"}`'

.ebextensions/sns-topic.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ Resources:
33
Type: AWS::SNS::Topic
44
Properties:
55
Subscription:
6-
- Endpoint:
7-
Fn::GetOptionSetting: {DefaultValue: [email protected], OptionName: NotificationEmail}
6+
- Endpoint: {"Ref" : "EmailAddress"}
87
Protocol: email

0 commit comments

Comments
 (0)