The ECS Cluster data source allows access to details of a specific cluster within an AWS ECS service.
data "aws_ecs_cluster" "ecs-mongo" {
cluster_name = "ecs-mongo-production"
}
This data source supports the following arguments:
cluster_name
- (Required) Name of the ECS ClusterThis data source exports the following attributes in addition to the arguments above:
arn
- ARN of the ECS Clusterstatus
- Status of the ECS Clusterpending_tasks_count
- Number of pending tasks for the ECS Clusterrunning_tasks_count
- Number of running tasks for the ECS Clusterregistered_container_instances_count
- The number of registered container instances for the ECS Clusterservice_connect_defaults
- The default Service Connect namespacesetting
- Settings associated with the ECS Clustertags
- Key-value map of resource tags