Skip to content

request: make list similar to session e.g. show instance-ids that match a specific tag #1752

Open
@nitrocode

Description

@nitrocode

Context

I like the usage of this command. I have 10 instances that match this tag and session will ssh/ssm into one of the instances perfectly.

$ aws-gate session Name:my-app

But what if I wanted to ssh/ssm into a specific instance? I cannot easily do this unless I list my instances using the awscli.

$ aws ec2 describe-instances \
  --filters "Name=tag:Name,Values=my-app" \
  --query 'Reservations[].Instances[].InstanceId'

Proposal

What I'd like is something like this and have it populate all the instance ids that match it.

$ aws-gate list Name:my-app

It would be perfect if it worked for multiple tags too

$ aws-gate list Name:my-app,env:prod

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions