Skip to content

Data Source: awsEcsCluster

The ECS Cluster data source allows access to details of a specific cluster within an AWS ECS service.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEcsCluster.DataAwsEcsCluster(this, "ecs-mongo", {
  clusterName: "ecs-mongo-production",
});

Argument Reference

The following arguments are supported:

  • clusterName - (Required) Name of the ECS Cluster

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the ECS Cluster
  • status - Status of the ECS Cluster
  • pendingTasksCount - Number of pending tasks for the ECS Cluster
  • runningTasksCount - Number of running tasks for the ECS Cluster
  • registeredContainerInstancesCount - The number of registered container instances for the ECS Cluster
  • serviceConnectDefaults - The default Service Connect namespace
  • setting - Settings associated with the ECS Cluster
  • tags - Key-value map of resource tags