From a3c199600a63bb3458284773866c7e230976e6ad Mon Sep 17 00:00:00 2001 From: Nindemic Date: Mon, 10 Jan 2022 10:12:52 +0200 Subject: [PATCH] Fix Terraform dependencies *Deployment was failing due to wrong deployment order Signed-off-by: Nindemic --- 02_deployHono/main.tf | 6 +++--- 02_deployHono/modules/hono/main.tf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/02_deployHono/main.tf b/02_deployHono/main.tf index 8a64a23..4c013cd 100644 --- a/02_deployHono/main.tf +++ b/02_deployHono/main.tf @@ -48,7 +48,7 @@ module "persistent_storage" { } module "kafka" { - depends_on = [module.persistent_storage] + depends_on = [module.persistent_storage, module.ambassador] source = "./modules/kafka" } @@ -60,12 +60,12 @@ module "hono" { } module "influxdb" { - depends_on = [module.persistent_storage] + depends_on = [module.persistent_storage, module.ambassador] source = "./modules/influxdb" } module "mongodb" { - depends_on = [module.persistent_storage] + depends_on = [module.persistent_storage, module.ambassador] source = "./modules/mongodb" mongodb_username = var.mongodb_username mongodb_password = var.mongodb_password diff --git a/02_deployHono/modules/hono/main.tf b/02_deployHono/modules/hono/main.tf index 1fe1332..dd3f116 100644 --- a/02_deployHono/modules/hono/main.tf +++ b/02_deployHono/modules/hono/main.tf @@ -32,7 +32,7 @@ resource "helm_release" "hono" { chart = "hono" version = "1.9.8" cleanup_on_fail = "true" - #depends_on = [helm_release.mongodb] + depends_on = [helm_release.mongodb] values = [ file("${path.module}/values.yaml") ]