Skip to content

Commit

Permalink
Update to compute_environment_order
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed May 16, 2024
1 parent b6bf7be commit 09a1328
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions terraform/generate-batch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

0 comments on commit 09a1328

Please sign in to comment.