Skip to content

Commit be6ffe2

Browse files
author
Premdeep Saini
committed
add default values for some common attributes
1 parent 42ed109 commit be6ffe2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

variables.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ variable "private_subnet_id" {
2828

2929
variable "volume_type" {
3030
type = string
31+
default = "gp3"
3132
description = "Root EBS volume type for Gitlab instance."
3233
}
3334

3435
variable "volume_size" {
3536
type = number
37+
default = 100
3638
description = "Size of root EBS volume for Gitlab instance."
3739
}
3840

@@ -69,6 +71,7 @@ variable "hosted_zone" {
6971

7072
variable "create_acm_certificate" {
7173
type = bool
74+
default = true
7275
description = "Whether to create SSL certificate for the Gitlab domain. If false, yo need to provide a valid AMC certificate arn in acm_certificate_arn variable."
7376
}
7477

@@ -98,11 +101,13 @@ variable "healthcheck_interval" {
98101

99102
variable "healthcheck_matcher" {
100103
type = string
104+
default = "200"
101105
description = "Response codes to use when checking for a healthy responses from a target."
102106
}
103107

104108
variable "healthcheck_path" {
105109
type = string
110+
default = "/-/readiness"
106111
description = "Destination for the health check request."
107112
}
108113

@@ -155,16 +160,19 @@ variable "gitlab_pg_subnet_ids" {
155160

156161
variable "gitlab_pg_allocated_storage" {
157162
type = number
163+
default = 100
158164
description = "Gitlab RDS Postgres allocated storage"
159165
}
160166

161167
variable "gitlab_pg_storage_type" {
162168
type = string
169+
default = "gp3"
163170
description = "Storage type for Gitlab RDS Postgres"
164171
}
165172

166173
variable "gitlab_pg_db_name" {
167174
type = string
175+
default = "gitlabhq-production"
168176
description = "Postgres DB name for Gitlab"
169177
}
170178

@@ -176,11 +184,13 @@ variable "gitlab_pg_port" {
176184

177185
variable "gitlab_pg_engine_version" {
178186
type = string
187+
default = "12.11"
179188
description = "Postgres engine version"
180189
}
181190

182191
variable "gitlab_pg_db_instance_class" {
183192
type = string
193+
default = "db.m5.large"
184194
description = "Postgres RDS instance class"
185195
}
186196

@@ -197,11 +207,13 @@ variable "gitlab_pg_password" {
197207

198208
variable "gitlab_pg_publicly_accessible" {
199209
type = bool
210+
default = false
200211
description = "Allow Gitlab RDS publicly accessible"
201212
}
202213

203214
variable "gitlab_redis_node_type" {
204215
type = string
216+
default = "cache.t3.medium"
205217
description = "Instance class for Gitlab Redis"
206218
}
207219

@@ -225,6 +237,7 @@ variable "gitlab_redis_parameter_group_name" {
225237

226238
variable "gitlab_redis_engine_version" {
227239
type = string
240+
default = "7.0"
228241
description = "Redis engine version for Gitlab Redis"
229242
}
230243

0 commit comments

Comments
 (0)