-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
56 lines (54 loc) · 1.63 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
44
45
46
47
48
49
50
51
52
53
54
55
56
service: 'embrasure'
useDotenv: true
provider:
name: aws
runtime: nodejs18.x
stage: v1
region: ${env:AWS_REGION} # Replace with your team
functions:
app:
handler: src/index.handler
environment:
LOGS_WORKER_ACCESS_KEY: ${env:LOGS_WORKER_ACCESS_KEY}
LOGS_WORKER_SECRET_ACCESS_KEY: ${env:LOGS_WORKER_SECRET_ACCESS_KEY}
REGION: ${env:REGION}
vpc:
securityGroupIds:
- ${env:SECURITY_GROUP_ID} # Replace with your security group ID
subnetIds:
- ${env:SUBNET_0_ID} # Replace with your subnet ID
- ${env:SUBNET_1_ID} # Add more subnet IDs if needed
events:
- http:
path: /secrets/{key}
method: GET
- http:
path: /secrets/{key}
method: DELETE
- http:
path: /secrets
method: GET
- http:
path: /secrets
method: POST
- http:
path: /secrets/{key}
method: PATCH
- http:
path: /users
method: GET
- http:
path: /users
method: POST
- http:
path: /users/{username}
method: DELETE
- http:
path: /users/{username}
method: GET
- http:
path: /users/{username}
method: PUT
- http:
path: /logs
method: GET