File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ provider "helm" {
9797}
9898
9999resource helm_release nginx_ingress {
100+ depends_on = [var . cluster_id ]
100101 name = " nginx-ingress-controller"
101102
102103 repository = " https://charts.bitnami.com/bitnami"
Original file line number Diff line number Diff line change @@ -25,12 +25,9 @@ module "aks-cluster" {
2525 location = var. location
2626}
2727
28- # By referencing the aks-cluster module as inputs to the kubernetes-config module,
29- # we establish a dependency between the two. This will create the AKS cluster before
30- # any Kubernetes resources are created.
3128module "kubernetes-config" {
3229 source = " ./kubernetes-config"
33- cluster_id = module. aks-cluster . cluster_id
30+ cluster_id = module. aks-cluster . cluster_id # creates dependency on cluster creation
3431 cluster_name = local. cluster_name
3532 data_disk_uri = module. aks-cluster . data_disk_uri
3633}
You can’t perform that action at this time.
0 commit comments