-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathserverless.yml
More file actions
66 lines (60 loc) · 1.56 KB
/
serverless.yml
File metadata and controls
66 lines (60 loc) · 1.56 KB
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
66
# console: true
# org: apillonadmin
# app: apillon-v2
service: apillon-dev-console-${opt:stage, 'dev'}
frameworkVersion: '3'
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules:
forceExclude:
- aws-sdk
forceInclude:
- follow-redirects
packagerOptions:
lockFile: '../../package-lock.json'
excludeFiles: '**/*\.test\.js|**/*\.test\.ts|**/tests/**/*|**/test/**/|**/*\.spec\.ts|**/*\.spec\.js'
prune:
number: 5
automatic: true
plugins:
- serverless-webpack
- serverless-prune-plugin
provider:
name: aws
runtime: nodejs20.x
region: eu-west-1
stage: ${opt:stage, 'dev'}
iam:
role: arn:aws:iam::018021943180:role/serverless-workers-executor
apiGateway:
minimumCompressionSize: 1024 # Enable gzip compression for responses > 1 KB
vpc:
securityGroupIds:
- sg-091bc1ce7424a7921
subnetIds:
- subnet-0bea6dd0c2a5ecc61
- subnet-085447b898128fc92
- subnet-0ed148d48e931f5fa
environment:
${file(../../bin/deploy/env/env.yml)}
package:
patterns:
- '!dist/**'
excludeDevDependencies: true
functions:
dev-console-api:
handler: ./src/lambda.handler
name: 'apillon-dev-console-api-${self:provider.stage}'
description: API for Apillon developer console
memorySize: 512
timeout: 30
events:
- http: # this is an API Gateway HTTP event trigger
path: /
method: ANY
cors: true
- http: # all routes get proxied to the Express router
path: /{proxy+}
method: ANY
cors: true