Skip to content

Commit 1313bbc

Browse files
committed
Move appDomain to ssm
1 parent 2f0ed64 commit 1313bbc

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ with custom values to setup a completely independent project:
7979
```
8080
3. Create the parameters for the test stage with
8181
```
82+
aws ssm put-parameter --type "String" \
83+
--name "/app/aws-lambda-edge/test/appDomain" \
84+
--value "test.aws-lambda-edge.immutableweb.app"
85+
8286
aws ssm put-parameter --type "String" \
8387
--name "/app/aws-lambda-edge/test/assetDomain" \
8488
--value "test-assets.aws-lambda-edge.immutableweb.app"

handlers/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ const formatReq = event => {
2121
}
2222

2323
exports.testHandler = createHandler('test')
24+
exports.prodHandler = createHandler('prod')

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ custom:
3636
domain: ${ssm:/app/${self:service}/domain}
3737
hostedZoneId: ${ssm:/app/${self:service}/hostedZoneId}
3838
certificateId: ${ssm:/app/${self:service}/certificateId}
39-
appDomain: ${self:provider.stage}.${self:custom.domain}
39+
appDomain: ${ssm:/app/${self:service}/${self:provider.stage}/appDomain}
4040
assetDomain: ${ssm:/app/${self:service}/${self:provider.stage}/assetDomain}
4141
client:
4242
bucketName: ${self:custom.organization}-${self:service}

0 commit comments

Comments
 (0)