Skip to content

DescribeServices

Source: src/AWS/ECS/DescribeServices.ts

Runtime binding for ecs:DescribeServices.

Bind this operation to a Cluster inside a function runtime to get a callable that describes services in the bound cluster. The cluster ARN is injected automatically and the host is granted ecs:DescribeServices on the cluster’s services.

const describeServices = yield* AWS.ECS.DescribeServices(cluster);
const response = yield* describeServices({ services: [serviceName] });
const runningCount = response.services?.[0]?.runningCount;