-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
145 lines (140 loc) · 3.91 KB
/
template.yaml
File metadata and controls
145 lines (140 loc) · 3.91 KB
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
bonded
Globals:
Function:
Timeout: 5
MemorySize: 128
Resources:
BondedApi:
Type: AWS::Serverless::Api
Properties:
StageName: Prod
Cors:
AllowMethods: "'GET,POST,PUT,OPTIONS,DELETE'"
AllowHeaders: "'Authorization,X-ID-Token,Content-Type'"
AllowOrigin: "'*'"
GatewayResponses:
DEFAULT_4XX:
ResponseParameters:
Headers:
Access-Control-Allow-Origin: "'*'"
Access-Control-Allow-Headers: "'Content-Type,Authorization,X-ID-Token'"
Access-Control-Allow-Methods: "'GET,POST,PUT,DELETE,OPTIONS'"
DEFAULT_5XX:
ResponseParameters:
Headers:
Access-Control-Allow-Origin: "'*'"
Access-Control-Allow-Headers: "'Content-Type,Authorization,X-ID-Token'"
Access-Control-Allow-Methods: "'GET,POST,PUT,DELETE,OPTIONS'"
BondedFunction:
Type: AWS::Serverless::Function
Properties:
PackageType: Image
# Environment:
# Variables:
# COGNITO_CLIENT_ID:
# COGNITO_ISSUER:
# COGNITO_JWKS_URL:
# DYNAMODB_ENDPOINT:
Policies:
- DynamoDBCrudPolicy:
TableName: "Calendars"
- DynamoDBCrudPolicy:
TableName: "Events"
Events:
Calendar:
Type: Api
Properties:
Path: /calendar/{calendarId}
Method: GET
RestApiId: !Ref BondedApi
CalendarList:
Type: Api
Properties:
Path: /calendar/list
Method: GET
RestApiId: !Ref BondedApi
CalendarFollow:
Type: Api
Properties:
Path: /calendar/follow
Method: PUT
RestApiId: !Ref BondedApi
CalendarUnfollow:
Type: Api
Properties:
Path: /calendar/unfollow
Method: DELETE
RestApiId: !Ref BondedApi
CalendarListPublic:
Type: Api
Properties:
Path: /calendar/list/public
Method: GET
RestApiId: !Ref BondedApi
CalendarCreate:
Type: Api
Properties:
Path: /calendar/create
Method: POST
RestApiId: !Ref BondedApi
CalendarEdit:
Type: Api
Properties:
Path: /calendar/edit/{calendarId}
Method: PUT
RestApiId: !Ref BondedApi
Hello:
Type: Api
Properties:
Path: /hello
Method: GET
RestApiId: !Ref BondedApi
DynamoDBTest:
Type: Api
Properties:
Path: /dynamodb-test
Method: GET
RestApiId: !Ref BondedApi
CalendarDelete:
Type: Api
Properties:
Path: /calendar/delete/{calendarId}
Method: DELETE
RestApiId: !Ref BondedApi
EventCreate:
Type: Api
Properties:
Path: /event/create/{calendarId}
Method: POST
RestApiId: !Ref BondedApi
EventEdit:
Type: Api
Properties:
Path: /event/edit/{calendarId}
Method: PUT
RestApiId: !Ref BondedApi
EventDelete:
Type: Api
Properties:
Path: /event/delete
Method: DELETE
RestApiId: !Ref BondedApi
EventList:
Type: Api
Properties:
Path: /event/list/{calendarId}
Method: GET
RestApiId: !Ref BondedApi
CalendarInviteUser:
Type: Api
Properties:
Path: /calendar/user/invite
Method: POST
RestApiId: !Ref BondedApi
Metadata:
DockerTag: go-provided.al2-v1
DockerContext: .
Dockerfile: Dockerfile