From a2458d6261e9a1987f4f82e8d43552472e452e53 Mon Sep 17 00:00:00 2001 From: Avrohom Gottlieb Date: Sun, 8 Dec 2024 16:09:56 -0500 Subject: [PATCH] fix job queue compute_env deprecation warning --- infrastructure/batch/job_queue.tf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infrastructure/batch/job_queue.tf b/infrastructure/batch/job_queue.tf index 1044cd0e..993b278e 100644 --- a/infrastructure/batch/job_queue.tf +++ b/infrastructure/batch/job_queue.tf @@ -3,9 +3,10 @@ resource "aws_batch_job_queue" "scpca_portal_project" { state = "ENABLED" priority = 1 - compute_environments = [ - aws_batch_compute_environment.scpca_portal_project.arn, - ] + compute_environment_order { + order = 1 + compute_environment = aws_batch_compute_environment.scpca_portal_project.arn + } tags = var.batch_tags }