-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
42 lines (38 loc) · 841 Bytes
/
serverless.yml
File metadata and controls
42 lines (38 loc) · 841 Bytes
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
service: auth-lambda
useDotenv: true
plugins:
- serverless-plugin-typescript
- serverless-offline
provider:
name: aws
runtime: nodejs18.x
region: eu-west-2
timeout: 60
memorySize: 1024
ephemeralStorageSize: 10240
architecture: arm64
environment:
NEO4J_URI: ${env:NEO4J_URI}
NEO4J_USER: ${env:NEO4J_USER}
NEO4J_PASSWORD: ${env:NEO4J_PASSWORD}
NEO4J_ENCRYPTED: ${env:NEO4J_ENCRYPTED, 'false'}
JWT_SECRET: ${env:JWT_SECRET}
PEPPER: ${env:PEPPER}
vpc:
securityGroupIds:
- ${env:SECURITY_GROUP_ID}
subnetIds:
- ${env:SUBNET_ID_1}
- ${env:SUBNET_ID_2}
functions:
api:
handler: src/index.handler
events:
- http:
path: /{proxy+}
method: ANY
cors: true
- http:
path: /
method: ANY
cors: true