Skip to content

Commit

Permalink
update serverless cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbt committed Jun 9, 2024
1 parent 928884d commit 0af005a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ custom:
DATABASE_NAME: ${ssm:survey-db-name}
DATABASE_HOST: ${ssm:survey-db-host}
DATABASE_PORT: ${ssm:survey-db-port}
chromiumLayerVersion:
production: 1
staging: 5

provider:
name: aws
Expand Down Expand Up @@ -65,7 +68,7 @@ functions:
timeout: 180
memorySize: 2048
layers:
- arn:aws:lambda:us-west-2:${ternary( ${self:custom.stage}, production, 208733872559, 694509587593)}:layer:chromium:${ternary( ${self:custom.stage}, production, 1, 3)}
- arn:aws:lambda:us-west-2:${ternary( ${self:custom.stage}, production, 208733872559, 694509587593)}:layer:chromium:${ternary( ${self:custom.stage}, production, ${self:custom.chromiumLayerVersion.production}, ${self:custom.chromiumLayerVersion.staging})}
getPublishPolicy:
handler: dist/src/http/get-publish-policy/index.handler
events:
Expand Down

0 comments on commit 0af005a

Please sign in to comment.