You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: variables.tf
+49-31Lines changed: 49 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ variable "container_name" {
32
32
}
33
33
34
34
variable"command" {
35
-
type=list
35
+
type=list(string)
36
36
description="(Optional) The command that is passed to the container"
37
-
default=[""]
37
+
default=null
38
38
}
39
39
40
40
variable"container_cpu" {
@@ -44,9 +44,9 @@ variable "container_cpu" {
44
44
}
45
45
46
46
variable"container_depends_on" {
47
-
type=list
47
+
type=list(string)
48
48
description="(Optional) 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"
description="(Optional) Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers."
67
-
default=[]
65
+
type=list(string)
66
+
description="(Optional) Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers"
67
+
default=null
68
68
}
69
69
70
70
variable"docker_labels" {
@@ -74,21 +74,24 @@ variable "docker_labels" {
74
74
}
75
75
76
76
variable"entrypoint" {
77
-
type=list
77
+
type=list(string)
78
78
description="(Optional) The entry point that is passed to the container"
79
-
default=[""]
79
+
default=null
80
80
}
81
81
82
82
variable"environment" {
83
-
type=list
84
-
description="(Optional) The environment variables to pass to the container. This is a list of maps. Each map should contain `name` and `value`"
85
-
default=[]
83
+
type=list(object({
84
+
name =string
85
+
value =string
86
+
}))
87
+
description="(Optional) The environment variables to pass to the container. This is a list of maps"
88
+
default=null
86
89
}
87
90
88
91
variable"essential" {
89
-
type=string
92
+
type=bool
90
93
description="(Optional) Determines whether all other containers in a task are stopped, if this container fails or stops for any reason. Due to how Terraform type casts booleans in json it is required to double quote this value"
description="(Optional) Container mount points. This is a list of maps, where each map should contain a `containerPath` and `sourceVolume`"
140
-
default=[]
146
+
default=null
141
147
}
142
148
143
149
locals {
@@ -149,11 +155,11 @@ locals {
149
155
},
150
156
]
151
157
}
152
-
158
+
153
159
variable"readonly_root_filesystem" {
154
-
type=string
160
+
type=bool
155
161
description="(Optional) Determines whether a container is given read-only access to its root filesystem. Due to how Terraform type casts booleans in json it is required to double quote this value"
description="(Optional) Timeout in seconds between sending SIGTERM and SIGKILL to container"
184
194
default=30
185
195
}
186
196
187
197
variable"ulimits" {
188
-
type=list
198
+
type=list(object({
199
+
name =string
200
+
hardLimit =number
201
+
softLimit =number
202
+
}))
189
203
description="(Optional) Container ulimit settings. This is a list of maps, where each map should contain \"name\", \"hardLimit\" and \"softLimit\""
190
-
default=[]
204
+
default=null
191
205
}
192
206
193
207
variable"user" {
208
+
type=string
194
209
description="(Optional) The user to run as inside the container. Can be any of these formats: user, user:group, uid, uid:gid, user:gid, uid:group"
195
-
default=""
210
+
default=null
196
211
}
197
212
198
213
variable"volumes_from" {
199
-
type=list
200
-
description="(Optional) A list of VolumesFrom maps which contain \"sourceContainer\" (name of the container that has the volumes to mount) and \"readOnly\" (whether the container can write to the volume)."
201
-
default=[]
214
+
type=list(object({
215
+
sourceContainer =string
216
+
readOnly =bool
217
+
}))
218
+
description="(Optional) A list of VolumesFrom maps which contain \"sourceContainer\" (name of the container that has the volumes to mount) and \"readOnly\" (whether the container can write to the volume)"
219
+
default=null
202
220
}
203
221
204
222
variable"working_directory" {
205
223
type=string
206
224
description="(Optional) The working directory to run commands inside the container"
0 commit comments