diff --git a/examples/eks/eks_cluster_autoscaler_policies/castai.tf b/examples/eks/eks_cluster_autoscaler_policies/castai.tf index a5b3764d..b5b0e136 100644 --- a/examples/eks/eks_cluster_autoscaler_policies/castai.tf +++ b/examples/eks/eks_cluster_autoscaler_policies/castai.tf @@ -229,4 +229,5 @@ resource "castai_rebalancing_job" "spots" { cluster_id = castai_eks_clusterid.cluster_id.id rebalancing_schedule_id = castai_rebalancing_schedule.spots.id enabled = true + depends_on = [module.castai-eks-cluster] }