-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
89 lines (88 loc) · 2.92 KB
/
variables.tf
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
variable "attributes_as_suffix" {
type = bool
description = "Attributes passed into the module are put in front of each.key (model name) by default. Setting this to true will put the attributes after the each.key."
default = false
}
variable "tables" {
type = map(object({
autoscaler = optional(object({
attributes = optional(list(string), [])
enabled = optional(bool, true)
max_read_capacity = optional(number, 1000)
max_write_capacity = optional(number, 1000)
min_read_capacity = optional(number, 1)
min_write_capacity = optional(number, 1)
read_schedule = optional(list(object({
schedule = string
min_capacity = number
max_capacity = number
})), [])
read_schedule_index = optional(list(object({
schedule = string
min_capacity = number
max_capacity = number
})), [])
read_target = optional(number, 75)
write_schedule = optional(list(object({
schedule = string
min_capacity = number
max_capacity = number
})), [])
write_schedule_index = optional(list(object({
schedule = string
min_capacity = number
max_capacity = number
})), [])
write_target = optional(number, 75)
tags = optional(map(string), {})
}), {})
global_secondary_index_map = optional(list(object({
hash_key = string
name = string
non_key_attributes = list(string)
projection_type = string
range_key = string
read_capacity = number
write_capacity = number
})), [])
local_secondary_index_map = optional(list(object({
name = string
non_key_attributes = list(string)
projection_type = string
range_key = string
})), [])
table = object({
attributes = optional(list(object({
name = string
type = string
})), [])
billing_mode = optional(string, "PROVISIONED")
encryption = optional(object({
enabled = optional(bool, false)
kms_key_arn = optional(string, "")
}), {})
point_in_time_recovery = optional(object({
enabled = optional(bool, false)
}), {})
streams = optional(object({
enabled = optional(bool, false)
view_type = optional(string, "")
}), {})
exists = optional(bool, true)
hash_key = string
hash_key_type = optional(string, "S")
range_key = optional(string, "")
range_key_type = optional(string, "S")
replicas = optional(list(string), [])
tags = optional(object({
enabled = optional(bool, true)
}), {})
ttl = optional(object({
attribute = optional(string, "ttl")
enabled = optional(bool, true)
}), {})
})
}))
description = "Tables to be created"
default = {}
}