Data Source: aws_batch_compute_environment
The Batch Compute Environment data source allows access to details of a specific compute environment within AWS Batch.
Example Usage
data "aws_batch_compute_environment" "batch-mongo" { compute_environment_name = "batch-mongo-production" }
Argument Reference
The following arguments are supported:
-
compute_environment_name
- (Required) The name of the Batch Compute Environment
Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
arn
- The ARN of the compute environment. -
ecs_cluster_arn
- The ARN of the underlying Amazon ECS cluster used by the compute environment. -
service_role
- The ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. -
type
- The type of the compute environment (for example,MANAGED
orUNMANAGED
). -
status
- The current status of the compute environment (for example,CREATING
orVALID
). -
status_reason
- A short, human-readable string to provide additional details about the current status of the compute environment. -
state
- The state of the compute environment (for example,ENABLED
orDISABLED
). If the state isENABLED
, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/batch_compute_environment.html