-
Notifications
You must be signed in to change notification settings - Fork 2
Description
in modules/verrazzano/templates.tf when one sets NIP as dns. Deployment fails with missing coherence variable.
Error: Invalid function argument
│
│ on modules/verrazzano/templates.tf line 113, in locals:
│ 113: ) : templatefile("${path.module}/resources/vz_admin_nip.template.yaml", {
│ 114: compartment_id = var.dns_compartment_id
│ 115: profile = var.verrazzano_profile
│ 116: control_plane = var.verrazzano_control_plane == "public" ? false : true
│ 117: control_plane_nsg = var.verrazzano_control_plane == "public" ? lookup(var.pub_nsg_ids, "admin") : lookup(var.int_nsg_ids, "admin")
│ 118: data_plane = var.verrazzano_data_plane == "public" ? false : true
│ 119: data_plane_nsg = var.verrazzano_data_plane == "public" ? lookup(var.pub_nsg_ids, "admin") : lookup(var.int_nsg_ids, "admin")
│ 120: lb_shape = lookup(var.verrazzano_load_balancer, "shape")
│ 121: flex_min = lookup(var.verrazzano_load_balancer, "flex_min")
│ 122: flex_max = lookup(var.verrazzano_load_balancer, "flex_max")
│ 123: int-nsg-id = lookup(var.int_nsg_ids, "admin")
│ 124: jaeger = var.jaeger
│ 125: kiali = var.kiali
│ 126: kube_state_metrics = var.kube_state_metrics
│ 127: mesh_id = var.mesh_id
│ 128: mesh_network = "admin"
│ 129: prometheus = var.prometheus
│ 130: prometheus_operator = var.prometheus_operator
│ 131: velero = var.velero
│ 132: weblogic_operator = var.weblogic_operator
│ 133: }
│ 134: )
│ ├────────────────
│ │ while calling templatefile(path, vars)
│ │ var.dns_compartment_id is ""
│ │ var.int_nsg_ids is map of string with 2 elements
│ │ var.jaeger is true
│ │ var.kiali is true
│ │ var.kube_state_metrics is true
│ │ var.mesh_id is "yggdrasil"
│ │ var.prometheus is true
│ │ var.prometheus_operator is true
│ │ var.pub_nsg_ids is map of string with 2 elements
│ │ var.velero is false
│ │ var.verrazzano_control_plane is "public"
│ │ var.verrazzano_data_plane is "public"
│ │ var.verrazzano_load_balancer is map of string with 3 elements
│ │ var.verrazzano_profile is "prod"
│ │ var.weblogic_operator is false
│
│ Invalid value for "vars" parameter: vars map does not contain key "argocd", referenced at modules/verrazzano/resources/vz_admin_nip.template.yaml:10,18-24.
Else conditional vz_admin_template = tobool ( ... : templatefile("${path.module}/resources/vz_admin_nip.template.yaml", ) is not setting coherence variable.