generated from eleva/serverless-node-api-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
36 lines (25 loc) · 812 Bytes
/
serverless.yml
File metadata and controls
36 lines (25 loc) · 812 Bytes
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
service: my-api
frameworkVersion: '3'
## Use .env
useDotenv: true
## Package individually each function
package:
individually: true
## Apply plugins
#local environment,documentation, monitoring cache, tests
plugins: ${file(./config/serverless-plugins.yml)}
## Define provider and globals
provider: ${file(./config/serverless-provider.yml)}
## Create resources with separate CloudFormation templates
#resources:
## Cognito
#- ${file(./config/resources/serverless-cognito-user-pool.yml)}
#- ${file(./config/resources/serverless-cognito-identity-pool.yml)}
## WAF
#- ${file(./../../config/resources/serverless-waf.yml)}
## Define atomic functions
functions:
## Hello function
- ${file(./src/function/hello/serverless.yml)}
## Define custom
custom: ${file(./config/serverless-custom.yml)}