-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
175 lines (131 loc) · 3.63 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
##############
# Common vars
##############
variable "prefix" {
type = string
description = "(optional) Prefix for RDSv3 infrastructure module"
default = "default"
}
variable "db_version" {
type = string
description = "(required) The db engine version to use"
default = ""
}
variable "db_type" {
type = string
description = "(required) The database db engine type to use"
default = ""
}
variable "rds_instance_id" {
type = string
description = "(optional) The ID of the RDSv3 db instance"
default = ""
}
######################
# RDSv3 Instance Vars
######################
variable "create_rds" {
type = bool
description = "(optional) Whether to create RDSv3 db instance"
default = true
}
variable "availability_zone" {
type = list(string)
description = "(required) The Availability Zone list of the RDSv3 instance (Multiple AZ must be specified if you are using HA)"
default = ["eu-de-01"]
}
variable "vpc_id" {
type = string
default = "(required) The ID of the VPC where to create RDSv3 infrstructure"
}
variable "secgroup_id" {
type = string
description = "(required) ID of existing security group"
default = ""
}
variable "network_id" {
type = string
description = "(required) ID of the network where to create RDSv3 infrstructure"
default = ""
}
variable "ha_replication_mode" {
type = string
description = "(optional) Specifies the replication mode for the standby DB instance."
default = ""
}
variable "db_port" {
type = number
description = "(optional) The port on which the RDSv3 accepts connections"
default = null
}
variable "db_password" {
type = string
description = "(required) Password for the master DB user."
sensitive = true
default = ""
}
variable "db_flavor" {
type = string
description = "(required) The db instance flavor specification code"
default = ""
}
variable "volume_type" {
type = string
description = "(required) The volume type of the RDSv3 instance"
default = "COMMON"
}
variable "volume_size" {
type = number
description = "(required) The volume size of the RDSv3 instance"
}
variable "volume_encryption_id" {
type = string
description = "(optional) The ID for the KMS encryption key"
default = ""
}
variable "backup_start_time" {
type = string
description = "(required) The window to perform maintenance in. Eg: '00:00-01:00'"
default = "00:00-01:00"
}
variable "backup_keep_days" {
type = number
description = "(optional) The days to retain backups for"
default = null
}
variable "tags" {
type = map(string)
description = "(optional) The key/value tag pairs to associate with the RDSv3 db instance"
}
########################
# RDSv3 Parameter Group
########################
variable "parametergroup_values" {
type = map(string)
description = "(optional) Map of the values of the RDSv3 db parameter group"
default = {}
}
variable "parametergroup_description" {
type = string
description = "(optional) Description of the RDSv3 parameter group to create"
default = ""
}
##########################
# RDSv3 Read Replica Vars
##########################
variable "read_replica_config" {
type = list(
object(
{
name = string,
flavor = string,
availability_zone = string,
public_ips = list(string),
volume_type = string,
volume_encryption_id = string
}
)
)
description = "(optional) The configuration of RDSv3 db read replica instances"
default = []
}