forked from ioet/python-pizza-planet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
62 lines (56 loc) · 1.57 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
59
60
61
62
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
pizza-planet-backend-zip
Pizza Planet Backend
Globals:
Function:
Timeout: 5
Runtime: python3.9
Architectures:
- x86_64
Resources:
AppLayer:
Type: AWS::Serverless::LayerVersion
Properties:
ContentUri: app/
CompatibleRuntimes:
- python3.9
Metadata:
BuildMethod: makefile
DatabaseLayer:
Type: AWS::Serverless::LayerVersion
Properties:
ContentUri: databaseLayer/
CompatibleRuntimes:
- python3.9
AppLambda:
Type: AWS::Serverless::Function
Properties:
CodeUri: lambdas/
Handler: app_lambda.app_lambda
Events:
AppLambdaEvent:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
Layers:
- !Ref AppLayer
- !Ref DatabaseLayer
Outputs:
ReportsURL:
Description: "API endpoint URL for our report endpoint"
Value: !Sub "https://pizza-planet-api.luisprgr.com/report/"
OrderURL:
Description: "API endpoint URL for our order endpoint"
Value: !Sub "https://pizza-planet-api.luisprgr.com/order/"
SizeURL:
Description: "API endpoint URL for our size endpoint"
Value: !Sub "https://pizza-planet-api.luisprgr.com/size/"
IngredientURL:
Description: "API endpoint URL for our ingredient endpoint"
Value: !Sub "https://pizza-planet-api.luisprgr.com/ingredient/"
BeverageURL:
Description: "API endpoint URL for our beverage endpoint"
Value: !Sub "https://pizza-planet-api.luisprgr.com/beverage/"