Skip to content

Commit

Permalink
Split resource configs and add signup email option placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
masayoshi644 authored and mwunderl committed Aug 24, 2016
1 parent 53b9e0e commit 5781e0e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .ebextensions/create-dynamodb-table.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Resources:
StartupSignupsTable:
Type: AWS::DynamoDB::Table
Properties:
KeySchema:
HashKeyElement: {AttributeName: email, AttributeType: S}
ProvisionedThroughput: {ReadCapacityUnits: 1, WriteCapacityUnits: 1}
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
Resources:
StartupSignupsTable:
Type: AWS::DynamoDB::Table
Properties:
KeySchema:
HashKeyElement: {AttributeName: email, AttributeType: S}
ProvisionedThroughput: {ReadCapacityUnits: 1, WriteCapacityUnits: 1}
NewSignupQueue:
Type: AWS::SQS::Queue
NewSignupTopic:
Type: AWS::SNS::Topic
Properties:
Subscription:
- Endpoint:
Fn::GetOptionSetting: {DefaultValue: nobody@amazon.com, OptionName: NewSignupEmail}
Fn::GetOptionSetting: {DefaultValue: nobody@example.com, OptionName: NewSignupEmail}
Protocol: email
- Endpoint:
Fn::GetAtt: [NewSignupQueue, Arn]
Expand Down
8 changes: 5 additions & 3 deletions .ebextensions/options.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
option_settings:
aws:elasticbeanstalk:customoption:
NewSignupEmail: me@example.com
aws:elasticbeanstalk:application:environment:
THEME: "flatly"
AWS_REGION: '`{ "Ref" : "AWS::Region"}`'
STARTUP_SIGNUP_TABLE: '`{ "Ref" : "StartupSignupsTable"}`'
NEW_SIGNUP_TOPIC: '`{ "Ref" : "NewSignupTopic"}`'
AWS_REGION: '`{"Ref" : "AWS::Region"}`'
STARTUP_SIGNUP_TABLE: '`{"Ref" : "StartupSignupsTable"}`'
NEW_SIGNUP_TOPIC: '`{"Ref" : "NewSignupTopic"}`'
aws:elasticbeanstalk:container:nodejs:
ProxyServer: nginx
aws:elasticbeanstalk:container:nodejs:staticfiles:
Expand Down

0 comments on commit 5781e0e

Please sign in to comment.