Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making sense of ECS container tasks #290

Open
alkalinecoffee opened this issue Oct 21, 2020 · 0 comments
Open

Making sense of ECS container tasks #290

alkalinecoffee opened this issue Oct 21, 2020 · 0 comments

Comments

@alkalinecoffee
Copy link

alkalinecoffee commented Oct 21, 2020

Hi 馃憢

I'm evaluating awless and have been looking to get some ECS task information out of it, namely, a simple list of our running ECS Fargate tasks, but have not been able to figure out how to get the info I'm looking for.

The AWS CLI would produce this output:

$ aws ecs list-tasks --cluster my-app-prod
{
    "taskArns": [
        "arn:aws:ecs:us-east-1:xxx:task/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "arn:aws:ecs:us-east-1:xxx:task/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "arn:aws:ecs:us-east-1:xxx:task/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "arn:aws:ecs:us-east-1:xxx:task/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    ]
}

I've tried all of the ECS-related awless commands, but none produce output similar to this.

awless ls containers produces a list of all the containers.
awless ls containerclusters produces a list of clusters, and a count of running tasks. Close, but I still can't get the ARNs of those tasks.
awless ls containerinstances returns nothing in my case (we're running in Fargate--no EC2 instances).
awless ls containertasks was the most confusing to me because of its name and output. It seems to return multiple task definitions and the containers within them, and also whether that task definition is running. No discernible info about tasks that I can tell.

Is there a command I'm missing that would produce something similar to aws ecs list-tasks? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant