-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
65 lines (58 loc) · 1.39 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
service: evaluacion-gpo-modelo
frameworkVersion: '2'
plugins:
- serverless-offline
custom:
serverless-offline:
httpPort: 4000
country: ${opt:country}
stage: ${opt:stage, 'dev'}
provider:
name: aws
runtime: nodejs12.x
stage: ${self:custom.stage}
region: us-west-2
deploymentBucket:
name: ${self:custom.stage}-carrg-deployments
blockPublicAccess: true
environment:
BASE_URL: ${env:BASE_URL}
# apiKeys:
# - free:
# - ${opt:stage}-carrg
# usagePlan:
# - free:
# quota:
# limit: 10
# offset: 0
# period: MONTH
# throttle:
# burstLimit: 5
# rateLimit: 5
apiGateway:
shouldStartNameWithService: true
functions:
get_order_by_power:
handler: src/get_order_by_power/handler.main
description: Obtiene lista de personajes con mayor poder
events:
- http:
path: characters/get-order_by_power
method: post
private: true
get-character-winner:
handler: src/get_character_winner/handler.main
description: Obtiene el personaje ganador
events:
- http:
path: characters/get-winner
method: post
private: true
get-character:
handler: src/get_characters/handler.main
description: Obtiene la lista de los personales
events:
- http:
path: characters
method: get
private: true