-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
60 lines (56 loc) · 1.26 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
service: github-merge-bot
frameworkVersion: '3'
configValidationMode: error
plugins:
- serverless-webpack
- serverless-offline
provider:
name: aws
runtime: nodejs18.x
stage: ${env:ENVIRONMENT}
region: us-east-1
vpc:
securityGroupIds:
- sg-888294ed
subnetIds:
- subnet-f2c2dfda # us-east-1a
- subnet-1508db62 # us-east-1b
- subnet-3fd94266 # us-east-1c
stackTags:
Name: ${env:PROJECT_NAME}-${self:custom.environmentMap.${env:ENVIRONMENT}}
owner: [email protected]
application: ${env:PROJECT_NAME}
env: ${self:custom.environmentMap.${env:ENVIRONMENT}}
managed_by: serverless-framework
function: lambda
environment: ${file(env.js)}
package:
individually: true
patterns:
- '!.webpack/**'
- '!test/**'
- '!**/*.test.js'
- '!.deployment/**'
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
packager: yarn
excludeFiles: '**/*.test.js'
excludeRegex: \.ts|test|\.map
environmentMap:
production: prod
staging: stage
development: dev
lab: lab
serverless-offline:
httpPort: 4000
functions:
mergebot:
handler: src/handlers.probot
memorySize: 192
timeout: 60
events:
- http:
path: /bot
method: POST