-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
65 lines (59 loc) · 1.4 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
57
58
59
60
61
62
63
64
65
service: "alfalfa"
plugins:
- serverless-esbuild
- serverless-offline
package:
individually: true
patterns:
- "!node_modules/.prisma/client/libquery_engine-*"
- "node_modules/.prisma/client/libquery_engine-linux-arm64-*"
- "!node_modules/prisma/libquery_engine-*"
- "!node_modules/@prisma/engines/**"
custom:
esbuild:
plugins: esbuild-plugins.js
sourcemap: true
offline:
useChildProcesses: true
provider:
name: aws
runtime: nodejs18.x
region: us-east-2
vpc:
subnetIds:
# Managed by Terraform
- subnet-xyz
securityGroupIds:
# Managed by Terraform
- sg-xyz
logs:
restApi: true
environment:
NODE_OPTIONS: "--enable-source-maps"
functions:
github:
handler: apps/github/src/index.handler
environment: ${file(./env.${opt:stage, 'local'}.yml):github-environment}
events:
- http:
path: /github/hello
method: get
- http:
path: /github/post-install
method: get
- http:
path: /api/github/webhooks
method: post
slack:
handler: apps/slack/src/index.handler
environment: ${file(./env.${opt:stage, 'local'}.yml):slack-environment}
events:
- http:
path: /slack/install
method: get
- http:
path: /slack/oauth_redirect
method: get
- http:
path: /slack/events
method: post