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

adding functionality to return just the instance_id #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jwhaley58
Copy link

upgraded the readme to incorporate the changes that I added for SSM as well as the --id-only

upgraded the readme to incorporate the changes that I added for SSM as well as the --id-only
@@ -91,7 +91,11 @@ def entrypoint(use_private_ip, key_path, user, ip_only, no_cache, tunnel, tunnel

chosen_host = choice(fuzzysearch_bash_command, use_ssm)

if use_ssm or ENV_USE_SSM:
if ENV_USE_SSM or use_ssm:
if id_only:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a known gap here, if you don't pass --ssm then you can't get to this branch of the code. I looked into using the click library to make dependent variables. It doesn't seem like it's something that works easily out of the box.

I'm open to making this more robust or adding exception handling but I didn't see a lot of that in this project and decided to just stick with simple.

@jwhaley58
Copy link
Author

this will resolve #41

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

Successfully merging this pull request may close these issues.

2 participants