-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
60 lines (54 loc) · 1.14 KB
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
CodeUri: ./bin
Runtime: go1.x
Timeout: 6
Environment:
Variables:
APP_ENV: !Ref APP_ENV
Parameters:
APP_ENV:
Type: String
Resources:
GetAllRegions:
Type: AWS::Serverless::Function
Properties:
Handler: get-cities
Events:
Event1:
Type: Api
Properties:
Path: /cities
Method: GET
GetMoviesInCity:
Type: AWS::Serverless::Function
Properties:
Handler: get-movies
Events:
Event1:
Type: Api
Properties:
Path: /movies/{regionCode}
Method: GET
GetCinemasInCity:
Type: AWS::Serverless::Function
Properties:
Handler: get-cinemas
Events:
Event1:
Type: Api
Properties:
Path: /cinemas/{cityID}
Method: GET
Subscribe:
Type: AWS::Serverless::Function
Properties:
Handler: subscribe
Events:
Event1:
Type: Api
Properties:
Path: /subscribe
Method: POST