-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModule.yml
More file actions
50 lines (46 loc) · 1.33 KB
/
Module.yml
File metadata and controls
50 lines (46 loc) · 1.33 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
Module: LambdaSharp.Challenge.Bookmarker
Version: 1.0-DEV
Description: Bookmark Manager with URL shortener and preview features.
Items:
- Resource: BookmarksTable
Scope: all
Description: DynamoDB for storing all the bookmark data
Type: AWS::DynamoDB::Table
Allow: Subscribe
Allow: ReadWrite
Properties:
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: ID
AttributeType: S
KeySchema:
- AttributeName: ID
KeyType: HASH
StreamSpecification:
StreamViewType: NEW_IMAGE
- Function: DynamoFunction
Description: This function is invoked by a DynamoDB stream when a new bookmark is added
Memory: 128
Timeout: 60
Sources:
- DynamoDB: BookmarksTable
BatchSize: 1
- Function: ApiFunctions
Description: API Gateway functions which implements Bookmark REST API
Memory: 256
Timeout: 30
Sources:
- Api: POST:/bookmarks
Invoke: AddBookmark
- Api: GET:/bookmarks/{id}
Invoke: GetBookmark
- Api: GET:/bookmarks
Invoke: GetBookmarks
- Api: DELETE:/bookmarks/{id}
Invoke: DeleteBookmark
- Api: GET:/preview/{id}
Invoke: GetBookmarkPreview
- Variable: ApiUrl
Description: API Gateway URL
Scope: public
Value: !Ref Module::RestApi::Url