Skip to content

Commit

Permalink
Kubecost (#7)
Browse files Browse the repository at this point in the history
add depends_on for kubecost
  • Loading branch information
ShibraAmin18 committed Jun 2, 2023
1 parent 85293a4 commit 8adf8af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ resource "aws_eks_addon" "kubecost" {

resource "kubernetes_ingress_v1" "kubecost" {
count = var.enable_kubecost ? 1 : 0
depends_on = [aws_eks_addon.kubecost]
wait_for_load_balancer = true
metadata {
name = "kubecost"
Expand Down Expand Up @@ -315,4 +316,4 @@ resource "kubernetes_ingress_v1" "kubecost" {
hosts = [var.kubecost_hostname]
}
}
}
}

0 comments on commit 8adf8af

Please sign in to comment.