Skip to content

DescribeContainerInstances

Source: src/AWS/ECS/DescribeContainerInstances.ts

Runtime binding for ecs:DescribeContainerInstances.

Bind this operation to a Cluster inside a function runtime to get a callable that describes container instances registered to the bound cluster — remaining resources, running-task counts, agent status. The cluster ARN is injected automatically and the host is granted ecs:DescribeContainerInstances on the cluster’s container instances.

const describeContainerInstances =
yield* AWS.ECS.DescribeContainerInstances(cluster);
const response = yield* describeContainerInstances({
containerInstances: [containerInstanceArn],
});
const remaining = response.containerInstances?.[0]?.remainingResources;