aws / aws-ec2-instance-connect-cli

This is an all-in-one client for EC2 Instance Connect that handles key brokerage and establishing connection to EC2 Instances through an interface near-identical to standard system ssh, sftp, and other utilities.
Apache License 2.0
159 stars 42 forks source link

feat: select instance via advanced filter #23

Open mariadb-JeffBachtel opened 3 years ago

mariadb-JeffBachtel commented 3 years ago

It would be useful to have something like --filters from aws ec2 describe-instances for selecting an instance to connect to. In my case, I am creating generic connection patterns for internal users, and hard-coding an instance id in documentation isn't ideal.

An issue is that a filter result isn't necessarily unique, I feel that mssh aborting with a message if the number of results for the filter is not equal to 1 would suffice to the principle of least surprise.