amazon-ecs-exec-checker icon indicating copy to clipboard operation
amazon-ecs-exec-checker copied to clipboard

There is an issue in JQ when iterating over managedAgents key in containers of tasks when trying to access lastStatus

Open tskorupka opened this issue 1 month ago • 0 comments

This bug occurs when you would like to check ecs exec for task which contains default guard duty configuration.

Line 422 should be

agentsStatus=$(echo "${describedTaskJson}" | jq -r ".tasks[0].containers[] | (.managedAgents // [])[] | .lastStatus")

tskorupka avatar Nov 13 '25 16:11 tskorupka