-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynamo.tf
More file actions
38 lines (32 loc) · 719 Bytes
/
Copy pathdynamo.tf
File metadata and controls
38 lines (32 loc) · 719 Bytes
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
resource "aws_dynamodb_table" "basic-dynamodb-table" {
name = "WhatToWatchDB"
billing_mode = "PROVISIONED"
read_capacity = 20
write_capacity = 20
hash_key = "Field"
attribute {
name = "Field"
type = "S"
}
attribute {
name = "StringValue"
type = "S"
}
attribute {
name = "NumericalValue"
type = "N"
}
ttl {
attribute_name = ""
enabled = false
}
global_secondary_index {
name = "StringValueIndex"
hash_key = "StringValue"
range_key = "NumericalValue"
write_capacity = 10
read_capacity = 10
projection_type = "INCLUDE"
non_key_attributes = ["Field"]
}
}