From d9def89383819a45e276943647b9026abb4f8acf Mon Sep 17 00:00:00 2001 From: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com> Date: Mon, 23 Feb 2026 18:27:41 +0100 Subject: [PATCH] core-nomad: make influxdb dependent on necessary resources Otherwise on slow instances CSI takes too long to run and we hit a feasibility constraint. --- infra/eu-west-2/core-nomad/influxdb.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infra/eu-west-2/core-nomad/influxdb.tf b/infra/eu-west-2/core-nomad/influxdb.tf index 241964c..aac5603 100644 --- a/infra/eu-west-2/core-nomad/influxdb.tf +++ b/infra/eu-west-2/core-nomad/influxdb.tf @@ -20,6 +20,8 @@ resource "aws_ebs_volume" "influxdb" { resource "nomad_csi_volume_registration" "influxdb" { + depends_on = [data.nomad_plugin.aws_ebs] + name = "influxdb" volume_id = "influxdb" capacity_min = "10G" @@ -61,7 +63,8 @@ resource "nomad_variable" "influxdb" { } resource "nomad_job" "influxdb" { - jobspec = file("${path.module}/../../../shared/nomad/jobs/influxdb.nomad.hcl") + depends_on = [nomad_csi_volume_registration.influxdb] + jobspec = file("${path.module}/../../../shared/nomad/jobs/influxdb.nomad.hcl") hcl2 { vars = {