forked from LambdaSharp/LambdaSharpTool-Challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeploy.yml
52 lines (43 loc) · 1.09 KB
/
Deploy.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
Version: "2018-07-04"
Name: Messages
Description: LambdaSharp demo app
Parameters:
- Name: MessageTable
Description: DynamoDb table for storing received messages
Resource:
Type: AWS::DynamoDB::Table
Allow: ReadWrite
Properties:
AttributeDefinitions:
- AttributeName: MessageId
AttributeType: S
KeySchema:
- AttributeName: MessageId
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
- Name: IngestionBucket
Description: S3 bucket to bulk load data
Resource:
Type: AWS::S3::Bucket
Allow: ReadWrite
Functions:
- Name: PostMessages
Description: Record message in a DynamoDB table
Memory: 128
Timeout: 30
Sources:
- Api: POST:/
- Name: GetMessages
Description: Show messages in a DynamoDB table
Memory: 128
Timeout: 30
Sources:
- Api: GET:/
- Name: LoadMessages
Description: Load messages in to a DynamoDB table from S3
Memory: 128
Timeout: 30
Sources:
- S3: IngestionBucket