diff --git a/02_deployHono/main.tf b/02_deployHono/main.tf index 8a64a23..1db6d62 100644 --- a/02_deployHono/main.tf +++ b/02_deployHono/main.tf @@ -3,8 +3,7 @@ locals { k8s_agent_count = terraform.workspace == "default" ? var.k8s_agent_count : var.testing_k8s_agent_count k8s_dns_prefix = terraform.workspace == "default" ? var.k8s_dns_prefix : "${terraform.workspace}-${var.k8s_dns_prefix}" domain_name = format("%s.westeurope.cloudapp.azure.com", local.k8s_dns_prefix) - email = "email@example.com" -} + email = "example@email.com}" data "terraform_remote_state" "storagestate" { workspace = terraform.workspace @@ -48,7 +47,7 @@ module "persistent_storage" { } module "kafka" { - depends_on = [module.persistent_storage] + depends_on = [module.persistent_storage, module.ambassador] source = "./modules/kafka" } @@ -60,12 +59,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") ]