-
Notifications
You must be signed in to change notification settings - Fork 2
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
Initial functionality #9
Conversation
This is the first commit of a working utility. It still has a bunch of TODOs. - Functions need docs - Better README - Clean up logging. - Ton of linter errors - Many more
Renamed the competer tool so that bash would not offer it as a completion when typing awssh<tab>
This was requested by @dav3r It is a bit of a weird case, where the current word doesn't match any candidate.
Also, update keywords from skeleton template and delete unused package_data line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strong work from all involved. I mostly have some housekeeping change requests.
Co-authored-by: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-Authored-By: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
This is in line with our standard of only specifying a return code if there is an error. Co-authored-by: Nick <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-Authored-By: Nick <[email protected]>
This enables cleaner class initialization code. Co-Authored-By: Nick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval intensifies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your continued work on getting this out the door! I had some mypy
related items that I missed on my initial review I would like resolved.
We override the default flags in order to exclude the --ignore-missing-imports flag. As a result of that, we add some additional dependencies needed to successfully do type-checking. Co-Authored-By: Nick <[email protected]>
Since these packages are not required for the tool to function, they do not belong in the install_requires section. Co-Authored-By: Nick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more mypy
dependency but otherwise LGTM ✔ Thanks for your work getting this over the finish line 💪💪💪
Co-authored-by: Nick <[email protected]>
🗣 Description
The PR provides the initial functionality of this project, a script that simplifies the process of opening sessions to AWS instances using SSM, either with or without SSH, and includes helpful tab autocompletion of various parameters on the command line.
💭 Motivation and context
There are two main benefits to using this tool:
If you need to connect to many different AWS instances across multiple AWS accounts via the CLI, this tool will save you a bunch of time.
Note that since this repository/module supports non-SSH connections, @felddy and I discussed the pros and cons of renaming it (and appropriately adjusting the argument names and related code), but we ultimately agreed that "awssh" could refer to opening any shell via AWS. Also, it seemed like extra work for minimal benefits.
🧪 Testing
I verified that the basic functionality all works as intended and all automated tests pass.
✅ Pre-approval checklist
to reflect the changes in this PR.
✅ Post-merge checklist