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 Clusterstatus
- Status of the ECS ClusterpendingTasksCount
- Number of pending tasks for the ECS ClusterrunningTasksCount
- Number of running tasks for the ECS ClusterregisteredContainerInstancesCount
- The number of registered container instances for the ECS ClusterserviceConnectDefaults
- The default Service Connect namespacesetting
- Settings associated with the ECS Clustertags
- Key-value map of resource tags