Open domvo opened 9 months ago
I found that not all containers have a managedAgent property. I was able to fix it by changing line 422 to
agentsStatus=$(echo "${describedTaskJson}" | jq -r ".tasks[0].containers[] | select(.managedAgents != null) | .managedAgents[].lastStatus")
I was seeing the same issue, thanks!
When running the checker, I get the following jq error:
I found out that not all containers have a managedAgent property. I was able to fix it by changing line 422 to
This is of course only a quick fix. The underlying issue is that we have AWS GuardDuty enabled. GuardDuty injects a container into each task but those GuardDuty containers do not have a managedAgent.
This is how the container comes back after describing it: