Skip to content

Commit 3b568ba

Browse files
committed
works in a single apply
1 parent 545a0d9 commit 3b568ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

_examples/aks/kubernetes-config/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ provider "helm" {
9797
}
9898

9999
resource helm_release nginx_ingress {
100+
depends_on = [var.cluster_id]
100101
name = "nginx-ingress-controller"
101102

102103
repository = "https://charts.bitnami.com/bitnami"

_examples/aks/main.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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.
3128
module "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
}

0 commit comments

Comments
 (0)