-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
43 lines (39 loc) · 1.09 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
service: narcissus-${env:DEPLOY_ENV}
frameworkVersion: ">=2.4.0"
provider:
name: aws
runtime: nodejs12.x
memorySize: 2560
timeout: 30
apiKeys:
- value: ${env:API_KEY}
functions:
narcissus:
handler: src/index.handler
environment:
DEBUG: "0"
s3_access_key: ${ssm(eu-west-1):/${env:DEPLOY_ENV}/narcissus/s3_access_key}
s3_secret_key: ${ssm(eu-west-1):/${env:DEPLOY_ENV}/narcissus/s3_secret_key}
s3_bucket: ${ssm(eu-west-1):/${env:DEPLOY_ENV}/narcissus/s3_bucket}
s3_endpoint: ${ssm(eu-west-1):/${env:DEPLOY_ENV}/narcissus/s3_endpoint}
s3_region: ${ssm(eu-west-1):/${env:DEPLOY_ENV}/narcissus/s3_region}
events:
- http:
path: narcissus-${env:DEPLOY_ENV}
method: GET
cors: true
private: true
narcissusAbout:
handler: src/about.handler
environment:
DEBUG: "0"
events:
- http:
path: narcissus-${env:DEPLOY_ENV}/about
method: GET
cors: true
private: true
package:
exclude:
- node_modules/puppeteer/.local-chromium/**
- src/test.js