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 ServiceclusterArn
- (Required) ARN of the ECS Cluster
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the ECS ServicedesiredCount
- Number of tasks for the ECS ServicelaunchType
- Launch type for the ECS ServiceschedulingStrategy
- Scheduling strategy for the ECS ServicetaskDefinition
- Family for the latest ACTIVE revisiontags
- Resource tags.