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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nitrocode opened this issue Sep 28, 2023 · 0 comments

Comments

@nitrocode
Copy link
Contributor

nitrocode commented Sep 28, 2023

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!

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