Skip to content

Data Source: awsEcsService

The ECS Service data source allows access to details of a specific Service within a AWS ECS Cluster.

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.dataAwsEcsService.DataAwsEcsService(this, "example", {
  clusterArn: "${data.aws_ecs_cluster.example.arn}",
  serviceName: "example",
});

Argument Reference

The following arguments are supported:

  • serviceName - (Required) Name of the ECS Service
  • clusterArn - (Required) ARN of the ECS Cluster

Attributes Reference

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

  • arn - ARN of the ECS Service
  • desiredCount - Number of tasks for the ECS Service
  • launchType - Launch type for the ECS Service
  • schedulingStrategy - Scheduling strategy for the ECS Service
  • taskDefinition - Family for the latest ACTIVE revision
  • tags - Resource tags.