Skip to content

Commit 8596099

Browse files
committed
Split resource configs and add signup email option placeholder
1 parent 50b6d4b commit 8596099

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Resources:
2+
StartupSignupsTable:
3+
Type: AWS::DynamoDB::Table
4+
Properties:
5+
KeySchema:
6+
HashKeyElement: {AttributeName: email, AttributeType: S}
7+
ProvisionedThroughput: {ReadCapacityUnits: 1, WriteCapacityUnits: 1}
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
Resources:
2-
StartupSignupsTable:
3-
Type: AWS::DynamoDB::Table
4-
Properties:
5-
KeySchema:
6-
HashKeyElement: {AttributeName: email, AttributeType: S}
7-
ProvisionedThroughput: {ReadCapacityUnits: 1, WriteCapacityUnits: 1}
82
NewSignupQueue:
93
Type: AWS::SQS::Queue
104
NewSignupTopic:
115
Type: AWS::SNS::Topic
126
Properties:
137
Subscription:
148
- Endpoint:
15-
Fn::GetOptionSetting: {DefaultValue: nobody@amazon.com, OptionName: NewSignupEmail}
9+
Fn::GetOptionSetting: {DefaultValue: nobody@example.com, OptionName: NewSignupEmail}
1610
Protocol: email
1711
- Endpoint:
1812
Fn::GetAtt: [NewSignupQueue, Arn]

.ebextensions/options.config

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
option_settings:
2+
aws:elasticbeanstalk:customoption:
3+
NewSignupEmail: [email protected]
24
aws:elasticbeanstalk:application:environment:
35
THEME: "flatly"
4-
AWS_REGION: '`{ "Ref" : "AWS::Region"}`'
5-
STARTUP_SIGNUP_TABLE: '`{ "Ref" : "StartupSignupsTable"}`'
6-
NEW_SIGNUP_TOPIC: '`{ "Ref" : "NewSignupTopic"}`'
6+
AWS_REGION: '`{"Ref" : "AWS::Region"}`'
7+
STARTUP_SIGNUP_TABLE: '`{"Ref" : "StartupSignupsTable"}`'
8+
NEW_SIGNUP_TOPIC: '`{"Ref" : "NewSignupTopic"}`'
79
aws:elasticbeanstalk:container:nodejs:
810
ProxyServer: nginx
911
aws:elasticbeanstalk:container:nodejs:staticfiles:

0 commit comments

Comments
 (0)