Skip to content

Commit 7832c9b

Browse files
authored
[MOD] fixed default list values (#12)
* [MOD] Upgraded ECS container definition to v0.53.0 * [MOD] fixed default list values
1 parent 250659c commit 7832c9b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

variables.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ variable "environment_files" {
127127
type = string
128128
}))
129129
description = "One or more files containing the environment variables to pass to the container. This maps to the --env-file option to docker run. The file must be hosted in Amazon S3. This option is only available to tasks using the EC2 launch type. This is a list of maps"
130-
default = null
130+
default = []
131131
}
132132

133133
variable "secrets" {
@@ -136,7 +136,7 @@ variable "secrets" {
136136
valueFrom = string
137137
}))
138138
description = "The secrets to pass to the container. This is a list of maps"
139-
default = null
139+
default = []
140140
}
141141

142142
variable "readonly_root_filesystem" {
@@ -198,13 +198,13 @@ variable "mount_points" {
198198
variable "dns_servers" {
199199
type = list(string)
200200
description = "Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers"
201-
default = null
201+
default = []
202202
}
203203

204204
variable "dns_search_domains" {
205205
type = list(string)
206206
description = "Container DNS search domains. A list of DNS search domains that are presented to the container"
207-
default = null
207+
default = []
208208
}
209209

210210
variable "ulimits" {
@@ -235,7 +235,7 @@ variable "volumes_from" {
235235
variable "links" {
236236
type = list(string)
237237
description = "List of container names this container can communicate with without port mappings"
238-
default = null
238+
default = []
239239
}
240240

241241
variable "user" {
@@ -250,7 +250,7 @@ variable "container_depends_on" {
250250
condition = string
251251
}))
252252
description = "The dependencies defined for container startup and shutdown. A container can contain multiple dependencies. When a dependency is defined for container startup, for container shutdown it is reversed. The condition can be one of START, COMPLETE, SUCCESS or HEALTHY"
253-
default = null
253+
default = []
254254
}
255255

256256
variable "docker_labels" {
@@ -280,7 +280,7 @@ variable "privileged" {
280280
variable "system_controls" {
281281
type = list(map(string))
282282
description = "A list of namespaced kernel parameters to set in the container, mapping to the --sysctl option to docker run. This is a list of maps: { namespace = \"\", value = \"\"}"
283-
default = null
283+
default = []
284284
}
285285

286286
variable "hostname" {
@@ -310,7 +310,7 @@ variable "pseudo_terminal" {
310310
variable "docker_security_options" {
311311
type = list(string)
312312
description = "A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems."
313-
default = null
313+
default = []
314314
}
315315

316316
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)