File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,8 @@ data "template_file" "container_definition" {
122
122
repositoryCredentials = local.repositoryCredentials == " {}" ? " null" : local.repositoryCredentials
123
123
resourceRequirements = local.resourceRequirements == " []" ? " null" : local.resourceRequirements
124
124
secrets = local.secrets == " []" ? " null" : local.secrets
125
+ startTimeout = var.startTimeout
126
+ stopTimeout = var.stopTimeout
125
127
systemControls = local.systemControls == " []" ? " null" : local.systemControls
126
128
ulimits = local.ulimits == " []" ? " null" : local.ulimits
127
129
user = var.user == " " ? " null" : var.user
Original file line number Diff line number Diff line change 33
33
"ulimits": ${ ulimits} ,
34
34
"user": "${ user} ",
35
35
"volumesFrom": ${ volumesFrom} ,
36
- "workingDirectory": "${ workingDirectory} "
36
+ "workingDirectory": "${ workingDirectory} ",
37
+ "startTimeout": "${ startTimeout} ,
38
+ "stopTimeout": "${ stopTimeout} "
37
39
}
Original file line number Diff line number Diff line change @@ -219,6 +219,17 @@ variable "secrets" {
219
219
type = list (map (string ))
220
220
}
221
221
222
+ variable "startTimeout" {
223
+ default = 120
224
+ description = " Time duration (in seconds) to wait before giving up on resolving dependencies for a container."
225
+ }
226
+
227
+ variable "stopTimeout" {
228
+ default = 120
229
+ description = " Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own."
230
+ }
231
+
232
+
222
233
variable "systemControls" {
223
234
default = []
224
235
description = " A list of namespaced kernel parameters to set in the container"
You can’t perform that action at this time.
0 commit comments