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

ssm-session should support -name flag #5

Open
rothgar opened this issue Mar 13, 2020 · 4 comments
Open

ssm-session should support -name flag #5

rothgar opened this issue Mar 13, 2020 · 4 comments

Comments

@rothgar
Copy link
Collaborator

rothgar commented Mar 13, 2020

Would be great to be able to mach an instance based on the AWS Name label.

@robertd
Copy link

robertd commented Aug 11, 2020

This would be great!

@ncatelli
Copy link

ncatelli commented Sep 2, 2021

This should be possible already via the -f flag as of the 1.0.0 release

ssm session -f 'Name=YourInstanceNameHere'

@robertd
Copy link

robertd commented Jan 1, 2022

@ncatelli Is it possible to search by name if it contains a string?

i.e. ssm session -f 'Name=ContainsValue*'

Is this possible at all?

@ncatelli
Copy link

ncatelli commented Jan 3, 2022

Hello @robertd,

In theory, the -f flag is a very thin wrapper around AWS Resource Filters which means you should be able use the patterns you described and described in the above link. However, in attempting to confirm this, it appeared not to work as expected. I'll work on correcting this behavior to match the above link unless someone feels strongly otherwise.

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

3 participants