Configures an AWS Batch job queue with a fair share scheduling policy, including share distribution settings.

Terraform Template

resource "aws_batch_job_queue" "example" {
  compute_environment_order = ["aws_batch_compute_environment.test_environment_1.arn", "1", "aws_batch_compute_environment.test_environment_2.arn", "2"]
  name = "tf-test-batch-job-queue"
  priority = 1
  scheduling_policy_arn = aws_batch_scheduling_policy.example.arn
  state = "ENABLED"
}

resource "aws_batch_scheduling_policy" "example" {
  name = "example"
}