-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.yml
58 lines (58 loc) · 1.5 KB
/
template.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
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Python Lambda Monorepo - Example
Resources:
createdinosaur:
FunctionName: create_dinosaur
Description: Create Dinosaur Lambda
Type: AWS::Serverless::Function
Properties:
Runtime: python3.7
Handler: main.handler
CodeUri: services/create_dinosaur
Timeout: 20
Environment:
Variables:
PYTHONPATH: ./packages
Events:
Api:
Type: Api
Properties:
Path: /create_dinosaur
Method: any
createhybriddinosaur:
FunctionName: create_hybrid_dinosaur
Description: Create Bybrid Dinosaur Lambda
Type: AWS::Serverless::Function
Properties:
Runtime: python3.7
Handler: main.handler
CodeUri: services/create_hybrid_dinosaur
Timeout: 20
Environment:
Variables:
PYTHONPATH: ./packages
Events:
Api:
Type: Api
Properties:
Path: /create_hybrid_dinosaur
Method: any
fightdinosaurs:
FunctionName: fight_dinosaurs
Description: List Discovered Dinosaurs Lambda
Type: AWS::Serverless::Function
Properties:
Runtime: python3.7
Handler: main.handler
CodeUri: services/fight_dinosaurs
Timeout: 20
Environment:
Variables:
PYTHONPATH: ./packages
Events:
Api:
Type: Api
Properties:
Path: /fight_dinosaurs
Method: any