-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
47 lines (43 loc) · 1.05 KB
/
serverless.yml
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
# NOTE: update this with your service name
service: league-ability-quiz-api
# Create an optimized package for our functions
package:
individually: true
plugins:
- serverless-bundle # Package our functions with Webpack
- serverless-offline
- serverless-dotenv-plugin # Load .env as environment variables
provider:
name: aws
runtime: nodejs12.x
stage: prod
region: us-east-2
# To load environment variables externally
# rename env.example to .env and uncomment
# the following line. Also, make sure to not
# commit your .env.
#
#environment:
# SAMPLE_ENV_VAR: ${env:SAMPLE_ENV_VAR}
functions:
info:
handler: src/handler.info
events:
- http:
path: info
method: get
getAbilities:
handler: src/handler.getAbilities
events:
- http:
path: abilities
method: get
- http:
path: abilities/{amount}
method: get
getAbilitiesCount:
handler: src/handler.getAbilitiesCount
events:
- http:
path: abilitiesCount
method: get