This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
167 lines (137 loc) · 4.06 KB
/
vars.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
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"
description = "Delimiter to be used between `namespace`, `stage`, `name` and `attributes`"
default = "-"
}
variable "attributes" {
type = "list"
description = "Additional attributes (e.g `policy` or `role`)"
default = []
}
variable "tags" {
type = "map"
description = "Additional tags (e.g map(`BusinessUnit`,`XYX`)"
default = {}
}
variable "enabled" {
description = "Whether or not the module should create any resources"
default = "true"
}
variable "dynamodb_enabled" {
description = "Whether or not to enable DynamoDB resources"
default = "false"
}
variable "billing_mode" {
type = "string"
description = "DynamoDB Billing mode. Can be PROVISIONED or PAY_PER_REQUEST"
default = "PROVISIONED"
}
variable "enable_streams" {
type = "string"
description = "Enable DynamoDB streams"
default = "false"
}
variable "stream_view_type" {
type = "string"
description = "When an item in a table is modified, what information is written to the stream"
# Valid values are `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE` or `NEW_AND_OLD_IMAGES`
default = ""
}
variable "enable_encryption" {
type = "string"
description = "Enable DynamoDB server-side encryption"
default = "true"
}
variable "enable_point_in_time_recovery" {
type = "string"
description = "Enable DynamoDB point in time recovery"
default = "true"
}
variable "autoscale_read_target" {
description = "The target value (in %) for DynamoDB read autoscaling"
default = 50
}
variable "autoscale_write_target" {
description = "The target value (in %) for DynamoDB write autoscaling"
default = 50
}
variable "autoscale_min_read_capacity" {
description = "DynamoDB autoscaling min read capacity"
default = 5
}
variable "autoscale_min_write_capacity" {
description = "DynamoDB autoscaling min write capacity"
default = 5
}
variable "autoscale_max_read_capacity" {
description = "DynamoDB autoscaling max read capacity"
default = 20
}
variable "autoscale_max_write_capacity" {
description = "DynamoDB autoscaling max write capacity"
default = 20
}
variable "hash_key" {
type = "string"
description = "DynamoDB table Hash Key"
}
variable "hash_key_type" {
type = "string"
description = "Hash Key type, which must be a scalar type: `S`, `N`, or `B` for (S)tring, (N)umber or (B)inary data"
default = "S"
}
variable "range_key" {
type = "string"
description = "DynamoDB table Range Key"
default = ""
}
variable "range_key_type" {
type = "string"
description = "Range Key type, which must be a scalar type: `S`, `N` or `B` for (S)tring, (N)umber or (B)inary data"
default = "S"
}
variable "ttl_enabled" {
description = "Whether ttl is enabled or disabled"
default = "true"
}
variable "ttl_attribute" {
type = "string"
description = "DynamoDB table ttl attribute"
default = "Expires"
}
variable "dynamodb_attributes" {
type = "list"
description = "Additional DynamoDB attributes in the form of a list of mapped values"
default = []
}
variable "global_secondary_index_map" {
type = "list"
description = "Additional global secondary indexes in the form of a list of mapped values"
default = []
}
variable "local_secondary_index_map" {
type = "list"
description = "Additional local secondary indexes in the form of a list of mapped values"
default = []
}
variable "enable_autoscaler" {
type = "string"
description = "Whether or not to enable DynamoDB autoscaling"
default = "false"
}
variable "aws_region" {
description = "AWS region where resources will be created"
default = "ap-southeast-2"
}