-
Notifications
You must be signed in to change notification settings - Fork 0
/
packaged.yaml
177 lines (175 loc) · 4.38 KB
/
packaged.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: 'Server Side Slinger Template
Serverless Architecture Model template for Server Side Slinger
'
Globals:
Function:
Timeout: 30
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
DISABLE_WIDGET_CACHE: false
LOCAL_LAMBDA: false
CodeUri: src/
Runtime: nodejs12.x
MemorySize: 1600
Resources:
Lifestyle:
Type: AWS::Serverless::Function
DependsOn:
- 3BridgesYoga
- BlazeYoga
Properties:
Handler: components/Dashboard.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
- LambdaInvokePolicy:
FunctionName: '*'
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
DashboardName: Lifestyle
Function1:
Ref: 3BridgesYoga
Function2:
Ref: BlazeYoga
Events:
BasicCase:
Type: Api
Properties:
Path: /lifestyle
Method: get
Nightlife:
Type: AWS::Serverless::Function
DependsOn:
- PressRoom
- 3SArtspace
Properties:
Handler: components/Dashboard.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
- LambdaInvokePolicy:
FunctionName: '*'
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
DashboardName: Nightlife
Function1:
Ref: 3SArtspace
Function3:
Ref: PressRoom
Events:
BasicCase:
Type: Api
Properties:
Path: /nightlife
Method: get
PressRoom:
Type: AWS::Serverless::Function
Properties:
Handler: widgets/PressRoom.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
Events:
BasicCase:
Type: Api
Properties:
Path: /pressRoom
Method: get
TheMusicHall:
Type: AWS::Serverless::Function
Properties:
Handler: widgets/TheMusicHall.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
Events:
BasicCase:
Type: Api
Properties:
Path: /theMusicHall
Method: get
3BridgesYoga:
Type: AWS::Serverless::Function
Properties:
Handler: widgets/3BridgesYoga.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
Events:
BasicCase:
Type: Api
Properties:
Path: /3by
Method: get
BlazeYoga:
Type: AWS::Serverless::Function
Properties:
Handler: widgets/BlazeYoga.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
Events:
BasicCase:
Type: Api
Properties:
Path: /blaze
Method: get
3SArtspace:
Type: AWS::Serverless::Function
Properties:
Handler: widgets/3SArtspace.lambdaHandler
CodeUri: s3://dashmobile-deploy/b99d0c44f585413e4a6b311c50f18a61
Policies:
- DynamoDBCrudPolicy:
TableName:
Ref: WidgetCache
Environment:
Variables:
TABLE_NAME:
Ref: WidgetCache
Events:
BasicCase:
Type: Api
Properties:
Path: /3s
Method: get
WidgetCache:
Type: AWS::Serverless::SimpleTable
Properties:
TableName: widget-cache