-
Notifications
You must be signed in to change notification settings - Fork 44
/
preset.js
40 lines (39 loc) · 1.03 KB
/
preset.js
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
const path = require('path');
module.exports = {
mixins: [__dirname],
aws: {
memorySize: 128,
region: 'us-east-1',
stageName: 'prod',
uniqueName: 'hops-lambda-<name>',
cloudformationTemplateFile: path.resolve(__dirname, 'cloudformation.yaml'),
include: ['<serverDir>/**'],
exclude: ['flow-typed/**', 'typings/**'],
},
configSchema: {
aws: {
type: 'object',
properties: {
memorySize: { type: 'number' },
region: { type: 'string', minLength: 1 },
domainName: { type: 'string', format: 'hostname' },
certificateArn: { type: 'string' },
stageName: { type: 'string', minLength: 1 },
uniqueName: { type: 'string', minLength: 1 },
cloudformationTemplateFile: { type: 'string', absolutePath: true },
include: {
type: 'array',
items: {
type: 'string',
},
},
exclude: {
type: 'array',
items: {
type: 'string',
},
},
},
},
},
};