Closed julian-ott-emnify closed 4 years ago
here is the patch for the proposed change:
From 0c417255a4c6623db403d9977d49e71437fe9ba8 Mon Sep 17 00:00:00 2001
From: Julian Ott <julian.ott@emnify.com>
Date: Mon, 25 Nov 2019 11:36:45 +0100
Subject: [PATCH] Fix containerDependsOn complex type
* added possibility to specify containername and condition
---
variables.tf | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/variables.tf b/variables.tf
index 28cb0cd..b809b46 100644
--- a/variables.tf
+++ b/variables.tf
@@ -183,7 +183,10 @@ variable "user" {
}
variable "container_depends_on" {
- type = list(string)
+ type = list(object({
+ containerName = string
+ condition = string
+ }))
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"
default = null
}
--
2.20.1 (Apple Git-117)
@julian-ott-emnify thanks for reporting. This is a bug introduced by the TF 0.12 upgrader that was not caught. Needs to be fixed
Just became a blocker for me too, fix would be much appreciated 👍 (Keep up the good work BTW - very useful TF modules!)
prior to the refactoring to support terraform 0.12 native types the
container_depends_on
has been a"list"
which got a list of maps. now it has the typelist(string)
which does not accept the map anymore.is this intended?