2017-02-01 15:51:26 +01:00
|
|
|
---
|
|
|
|
layout: "aws"
|
|
|
|
page_title: "AWS: aws_ecs_cluster"
|
|
|
|
sidebar_current: "docs-aws-datasource-ecs-cluster"
|
|
|
|
description: |-
|
|
|
|
Provides details about an ecs cluster
|
|
|
|
---
|
|
|
|
|
|
|
|
# aws\_ecs\_cluster
|
|
|
|
|
|
|
|
The ECS Cluster data source allows access to details of a specific
|
|
|
|
cluster within an AWS ECS service.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-07 17:54:28 +02:00
|
|
|
```hcl
|
2017-02-01 15:51:26 +01:00
|
|
|
data "aws_ecs_cluster" "ecs-mongo" {
|
|
|
|
cluster_name = "ecs-mongo-production"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `cluster_name` - (Required) The name of the ECS Cluster
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `arn` - The ARN of the ECS Cluster
|
|
|
|
* `status` - The status of the ECS Cluster
|
|
|
|
* `pending_tasks_count` - The number of pending tasks for the ECS Cluster
|
|
|
|
* `running_tasks_count` - The number of running tasks for the ECS Cluster
|
|
|
|
* `registered_container_instances_count` - The number of registered container instances for the ECS Cluster
|