You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered some problems to use ecs-session in one of my account.
After adding --debug arg, it appeared that one of my ECS cluster has no tasks (seems not so useful, but why not).
After digging a little in the code, the issue happens here :
It fails when using the paginator list_tasks that returns an empty list of tasks.
Error thrown is
[ssm-tools.ecs-session] ERROR: An error occurred (InvalidParameterException) when calling the DescribeTasks operation: Tasks cannot be empty.
It would be better to first check if the paginator is empty or not, before going further.
However, I'm not sure what is the best way to check :
I encountered some problems to use ecs-session in one of my account.
After adding
--debug
arg, it appeared that one of my ECS cluster has no tasks (seems not so useful, but why not).After digging a little in the code, the issue happens here :
It fails when using the paginator
list_tasks
that returns an empty list of tasks.Error thrown is
It would be better to first check if the paginator is empty or not, before going further.
However, I'm not sure what is the best way to check :
can_paginate
KeyCount
key on the first page (as mentionned hereThe text was updated successfully, but these errors were encountered: