diff --git a/examples/eks/eks_cluster_autoscaler_policies/castai.tf b/examples/eks/eks_cluster_autoscaler_policies/castai.tf index e8fde652..665bf2e7 100644 --- a/examples/eks/eks_cluster_autoscaler_policies/castai.tf +++ b/examples/eks/eks_cluster_autoscaler_policies/castai.tf @@ -230,4 +230,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] }