Skip to content

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

Description

@tskorupka

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions