-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
220 lines (187 loc) · 5.45 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-dynamodb"
description = "Terraform current module repo"
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'"
}
variable "attributes" {
type = list(any)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "enabled" {
type = bool
default = true
description = "This is bool option for enable or disabled"
}
variable "autoscale_write_target" {
type = number
default = 50
description = "The target value (in %) for DynamoDB write autoscaling"
}
variable "autoscale_read_target" {
type = number
default = 50
description = "The target value (in %) for DynamoDB read autoscaling"
}
variable "autoscale_min_read_capacity" {
type = number
default = 5
description = "DynamoDB autoscaling min read capacity"
}
variable "autoscale_max_read_capacity" {
type = number
default = 20
description = "DynamoDB autoscaling max read capacity"
}
variable "autoscale_min_write_capacity" {
type = number
default = 5
description = "DynamoDB autoscaling min write capacity"
}
variable "autoscale_max_write_capacity" {
type = number
default = 20
description = "DynamoDB autoscaling max write capacity"
}
variable "billing_mode" {
type = string
default = "PROVISIONED"
description = "DynamoDB Billing mode. Can be PROVISIONED or PAY_PER_REQUEST"
}
variable "enable_streams" {
type = bool
default = false
description = "Enable DynamoDB streams"
}
variable "stream_view_type" {
type = string
default = ""
description = "When an item in the table is modified, what information is written to the stream. Valid values are KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES."
}
variable "enable_encryption" {
type = bool
default = true
description = "Enable DynamoDB server-side encryption"
}
variable "server_side_encryption_kms_key_arn" {
type = string
default = null
description = "The ARN of the CMK that should be used for the AWS KMS encryption. This attribute should only be specified if the key is different from the default DynamoDB CMK, alias/aws/dynamodb."
}
variable "enable_point_in_time_recovery" {
type = bool
default = true
description = "Enable DynamoDB point in time recovery"
}
variable "hash_key" {
type = string
description = "DynamoDB table Hash Key"
}
variable "hash_key_type" {
type = string
default = "S"
description = "Hash Key type, which must be a scalar type: `S`, `N`, or `B` for (S)tring, (N)umber or (B)inary data"
}
variable "range_key" {
type = string
default = ""
description = "DynamoDB table Range Key"
}
variable "range_key_type" {
type = string
default = "S"
description = "Range Key type, which must be a scalar type: `S`, `N`, or `B` for (S)tring, (N)umber or (B)inary data"
}
variable "ttl_attribute" {
type = string
default = "Expires"
description = "DynamoDB table TTL attribute"
}
variable "ttl_enabled" {
type = bool
default = true
description = "Set to false to disable DynamoDB table TTL"
}
variable "enable_autoscaler" {
type = bool
default = false
description = "Flag to enable/disable DynamoDB autoscaling"
}
variable "autoscaler_attributes" {
type = list(string)
default = []
description = "Additional attributes for the autoscaler module"
}
variable "autoscaler_tags" {
type = map(string)
default = {}
description = "Additional resource tags for the autoscaler module"
}
variable "dynamodb_attributes" {
type = list(object({
name = string
type = string
}))
default = []
description = "Additional DynamoDB attributes in the form of a list of mapped values"
}
variable "global_secondary_index_map" {
type = list(object({
hash_key = string
name = string
non_key_attributes = list(string)
projection_type = string
range_key = string
read_capacity = number
write_capacity = number
}))
default = []
description = "Additional global secondary indexes in the form of a list of mapped values"
}
variable "local_secondary_index_map" {
type = list(object({
name = string
non_key_attributes = list(string)
projection_type = string
range_key = string
}))
default = []
description = "Additional local secondary indexes in the form of a list of mapped values"
}
variable "replicas" {
type = list(string)
default = []
description = "List of regions to create replica"
}
variable "dynamodb_indexes" {
type = list(string)
default = [""]
description = "List of DynamoDB indexes"
}