The Batch Job Queue data source allows access to details of a specific job queue within AWS Batch.
data "aws_batch_job_queue" "test-queue" {
name = "tf-test-batch-job-queue"
}
This data source supports the following arguments:
name
- (Required) Name of the job queue.This data source exports the following attributes in addition to the arguments above:
arn
- ARN of the job queue.scheduling_policy_arn
- The ARN of the fair share scheduling policy. If this attribute has a value, the job queue uses a fair share scheduling policy. If this attribute does not have a value, the job queue uses a first in, first out (FIFO) scheduling policy.status
- Current status of the job queue (for example, CREATING
or VALID
).status_reason
- Short, human-readable string to provide additional details about the current status
of the job queue.state
- Describes the ability of the queue to accept new jobs (for example, ENABLED
or DISABLED
).tags
- Key-value map of resource tagspriority
- Priority of the job queue. Job queues with a higher priority are evaluated first when
associated with the same compute environment.compute_environment_order
- The compute environments that are attached to the job queue and the order in
which job placement is preferred. Compute environments are selected for job placement in ascending order.
compute_environment_order.#.order
- The order of the compute environment.compute_environment_order.#.compute_environment
- The ARN of the compute environment.