-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.ts
46 lines (43 loc) · 1 KB
/
serverless.ts
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
/* eslint-disable no-template-curly-in-string */
import type { AWS } from '@serverless/typescript';
import { functions } from './resources';
const serverlessConfiguration: AWS = {
service: 'io-core-cldsvc-serverless-template',
frameworkVersion: '2',
plugins: ['serverless-offline', 'serverless-offline-lambda', 'serverless-webpack'],
package: {
individually: true,
},
useDotenv: true,
variablesResolutionMode: '20210326',
provider: {
name: 'aws',
runtime: 'nodejs14.x',
stage: 'dev',
region: 'eu-west-1',
lambdaHashingVersion: '20201221',
timeout: 6,
httpApi: {
shouldStartNameWithService: true,
disableDefaultEndpoint: false,
metrics: true,
},
logs: {
httpApi: true,
},
environment: {
SERVICE_NAME: '${self:service}',
},
},
custom: {
webpack: {
includeModules: true,
},
},
functions: { ...functions },
resources: {
Resources: {},
Outputs: {},
},
};
module.exports = serverlessConfiguration;