amazon-ecs-exec-checker
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
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")