bottlerocket-os / bottlerocket-ecs-updater

A service to automatically manage Bottlerocket updates in an Amazon ECS cluster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List only ACTIVE instance in a cluster

srgothi92 opened this issue · comments

What I'd like:
Currently updater lists all the container instances in a cluster irrespective of their states. This is not useful, because we do not want to consider updating instance not in ACTIVE state.
Additionally, according to docs here, changing instance state to draining only works if instances are in ACTIVE state.

Any alternatives you've considered:
Use status field in request parameter to filter. Detailed docs here