forked from cloudposse/terraform-aws-dynamodb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
121 lines (100 loc) · 2.82 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
variable "namespace" {
type = "string"
description = "Namespace (e.g. `eg` or `cp`)"
}
variable "stage" {
type = "string"
description = "Stage (e.g. `prod`, `dev`, `staging`, `infra`)"
}
variable "name" {
type = "string"
description = "Name (e.g. `app` or `cluster`)"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `namespace`, `stage`, `name`, and `attributes`"
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `policy` or `role`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "autoscale_write_target" {
default = 50
description = "The target value (in %) for DynamoDB write autoscaling"
}
variable "autoscale_read_target" {
default = 50
description = "The target value (in %) for DynamoDB read autoscaling"
}
variable "autoscale_min_read_capacity" {
default = 5
description = "DynamoDB autoscaling min read capacity"
}
variable "autoscale_max_read_capacity" {
default = 20
description = "DynamoDB autoscaling max read capacity"
}
variable "autoscale_min_write_capacity" {
default = 5
description = "DynamoDB autoscaling min write capacity"
}
variable "autoscale_max_write_capacity" {
default = 20
description = "DynamoDB autoscaling max write capacity"
}
variable "enable_streams" {
type = "string"
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"
}
variable "enable_encryption" {
type = "string"
default = "true"
description = "Enable DynamoDB server-side encryption"
}
variable "enable_point_in_time_recovery" {
type = "string"
default = "true"
description = "Enable DynamoDB point in time recovery"
}
variable "hash_key" {
type = "string"
description = "DynamoDB table Hash Key"
}
variable "range_key" {
type = "string"
default = ""
description = "DynamoDB table Range Key"
}
variable "ttl_attribute" {
type = "string"
default = "Expires"
description = "DynamoDB table TTL attribute"
}
variable "enable_autoscaler" {
type = "string"
default = "true"
description = "Flag to enable/disable DynamoDB autoscaling"
}
variable "dynamodb_attributes" {
type = "list"
default = []
description = "Additional DynamoDB attributes in the form of a list of mapped values"
}
variable "global_secondary_index_map" {
type = "list"
default = []
description = "Additional global secondary indexes in the form of a list of mapped values"
}