-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathserverless-admin.yml
More file actions
73 lines (67 loc) · 1.84 KB
/
serverless-admin.yml
File metadata and controls
73 lines (67 loc) · 1.84 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
67
68
69
70
71
72
73
# console: true
# org: apillonadmin
# app: apillon-v2
service: apillon-admin-api-${opt:stage, 'dev'}
frameworkVersion: '3'
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules:
# nodeModulesRelativeDir: '../../'
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)}
# ACCESS_FUNCTION_NAME: 'apillon-access-service-${self:provider.stage}'
# MONITORING_FUNCTION_NAME: 'apillon-monitoring-service-${self:provider.stage}'
# you can add packaging information here
package:
patterns:
- '!dist/**'
# - '!**/*.*'
# - '!.turbo'
# - './dist/**'
excludeDevDependencies: true
functions:
admin-api:
handler: ./src/admin-lambda.handler
name: 'apillon-admin-api-${self:provider.stage}'
description: API for Apillon Admin app
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