Permalink
Browse files

chore: use nsolid layer

  • Loading branch information...
JakubMatejka committed Nov 30, 2018
1 parent a35db6e commit 2dffe8e43c0b098647cb48ef68c00b8762a9d776
Showing with 23 additions and 5 deletions.
  1. +1 −1 Dockerfile
  2. +1 −0 docker-compose.yml
  3. +21 −4 serverless.yml
@@ -13,7 +13,7 @@ RUN amazon-linux-extras install docker
RUN yarn global add node-gyp
# serverless
RUN yarn global add serverless@1.32
RUN yarn global add serverless@1.34
# working directory
ADD ./ /code
@@ -16,6 +16,7 @@ services:
- "LAMBDA_EXECUTION_ROLE_ARN=${DEV_LAMBDA_EXECUTION_ROLE_ARN}"
- "SERVICE_NAME=${DEV_SERVICE_NAME}"
- "KEBOOLA_STACK=${DEV_KEBOOLA_STACK}"
- "NSOLID_LICENSE_KEY=${DEV_NSOLID_LICENSE_KEY}"
- "REGION=${DEV_REGION}"
- "STAGE=dev"
- "SES_EMAIL_FROM=${DEV_SES_EMAIL_FROM}"
@@ -40,6 +40,7 @@ provider:
COGNITO_POOL_ID: ${env:COGNITO_POOL_ID}
ICONS_ENDPOINT: ${env:ICONS_ENDPOINT}
LOG_PORT: ${env:LOG_PORT}
NSOLID_LICENSE_KEY: ${env:NSOLID_LICENSE_KEY}
REGION: ${env:REGION}
RDS_DATABASE: ${env:RDS_DATABASE}
RDS_HOST: ${env:RDS_HOST}
@@ -82,13 +83,17 @@ provider:
functions:
dbMigration:
timeout: 300
handler: src/lambda/dbMigration.handler
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
timeout: 300
handler: src/lambda/dbMigration.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
public:
handler: src/lambda/public.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
events:
@@ -129,6 +134,8 @@ functions:
admin:
handler: src/lambda/admin.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
events:
@@ -237,6 +244,8 @@ functions:
apps:
handler: src/lambda/apps.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
events:
@@ -315,6 +324,8 @@ functions:
vendors:
handler: src/lambda/vendors.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
events:
@@ -385,6 +396,8 @@ functions:
service:
handler: src/lambda/service.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
events:
@@ -399,11 +412,15 @@ functions:
authEmailTrigger:
handler: src/lambda/authEmail.emails
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
auth:
handler: src/lambda/auth.handler
layers:
- arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2
tags:
KeboolaStack: ${env:KEBOOLA_STACK}
events:

0 comments on commit 2dffe8e

Please sign in to comment.