From 09a13287c8a88c7e8bfa9ac26e61a8554dfd0894 Mon Sep 17 00:00:00 2001 From: Nikki Tebaldi <17799906+nikki-t@users.noreply.github.com> Date: Thu, 16 May 2024 20:30:45 +0000 Subject: [PATCH] Update to compute_environment_order --- terraform/generate-batch.tf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/terraform/generate-batch.tf b/terraform/generate-batch.tf index 81fdb03..a6aac57 100644 --- a/terraform/generate-batch.tf +++ b/terraform/generate-batch.tf @@ -66,7 +66,10 @@ resource "aws_batch_job_queue" "aqua" { name = "${var.prefix}-aqua" state = "ENABLED" priority = 10 - compute_environments = [aws_batch_compute_environment.generate_aqua.arn] + compute_environment_order { + order = 1 + compute_environment = aws_batch_compute_environment.generate_aqua.arn + } scheduling_policy_arn = aws_batch_scheduling_policy.generate_aqua.arn } @@ -122,7 +125,10 @@ resource "aws_batch_job_queue" "terra" { name = "${var.prefix}-terra" state = "ENABLED" priority = 10 - compute_environments = [aws_batch_compute_environment.generate_terra.arn] + compute_environment_order { + order = 1 + compute_environment = aws_batch_compute_environment.generate_terra.arn + } scheduling_policy_arn = aws_batch_scheduling_policy.generate_terra.arn } @@ -178,6 +184,9 @@ resource "aws_batch_job_queue" "viirs" { name = "${var.prefix}-viirs" state = "ENABLED" priority = 10 - compute_environments = [aws_batch_compute_environment.generate_viirs.arn] + compute_environment_order { + order = 1 + compute_environment = aws_batch_compute_environment.generate_viirs.arn + } scheduling_policy_arn = aws_batch_scheduling_policy.generate_viirs.arn } \ No newline at end of file