forked from cloudtools/troposphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDynamoDB_Table.template
79 lines (79 loc) · 2.58 KB
/
DynamoDB_Table.template
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
{
"Description": "AWS CloudFormation Sample Template: This template demonstrates the creation of a DynamoDB table.",
"Outputs": {
"TableName": {
"Description": "Table name of the newly create DynamoDB table",
"Value": {
"Ref": "myDynamoDBTable"
}
}
},
"Parameters": {
"HaskKeyElementName": {
"AllowedPattern": "[a-zA-Z0-9]*",
"ConstraintDescription": "must contain only alphanumberic characters",
"Description": "HashType PrimaryKey Name",
"MaxLength": "2048",
"MinLength": "1",
"Type": "String"
},
"HaskKeyElementType": {
"AllowedPattern": "[S|N]",
"ConstraintDescription": "must be either S or N",
"Default": "S",
"Description": "HashType PrimaryKey Type",
"MaxLength": "1",
"MinLength": "1",
"Type": "String"
},
"ReadCapacityUnits": {
"ConstraintDescription": "should be between 5 and 10000",
"Default": "5",
"Description": "Provisioned read throughput",
"MaxValue": "10000",
"MinValue": "5",
"Type": "Number"
},
"WriteCapacityUnits": {
"ConstraintDescription": "should be between 5 and 10000",
"Default": "10",
"Description": "Provisioned write throughput",
"MaxValue": "10000",
"MinValue": "5",
"Type": "Number"
}
},
"Resources": {
"myDynamoDBTable": {
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": {
"Ref": "HaskKeyElementName"
},
"AttributeType": {
"Ref": "HaskKeyElementType"
}
}
],
"KeySchema": [
{
"AttributeName": {
"Ref": "HaskKeyElementName"
},
"KeyType": "HASH"
}
],
"ProvisionedThroughput": {
"ReadCapacityUnits": {
"Ref": "ReadCapacityUnits"
},
"WriteCapacityUnits": {
"Ref": "WriteCapacityUnits"
}
}
},
"Type": "AWS::DynamoDB::Table"
}
}
}