-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add ability to have multiple --local-forwarding arguments to ec2-instance-connect ssh command #9101
Comments
Thanks for the feature request. The |
We heard back from the team maintaining this customization, and they noted that this feature request may be a duplicate (or closely overlap with) another recent issue: #8952. We may want to consolidate these for tracking going forward, or otherwise elaborate on specific differences. Regarding #8952 — the team acknowledged that it would be a beneficial enhancement of the plugin and added the feature request to their backlog for further tracking. |
Thanks Tim ( and team ). I think that makes sense both being about parameters passed; but it sounds like two different sets of parameters. one: to have multiple of a specific parameter that is already there, and two: the ability to pass additional custom commands to the ssh call. The 2nd one would probably satisfy my use case but since there is already a specific parameter for creating a tunnel it seems like it would be cleaner to implement it with a repeated parameter. But obviously, whatever works best for your team is great. |
Closing this issue as the appropriate team has acknowledged this feature request and backlogged another that covers this use case. Please refer to the AWS CLI changelog for updates going forward. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the feature
The aws ec2-instance-connect ssh command already takes in one parameter for a local forwarding string; the ssh program supports multiple local forwarding options so allowing multiple would help when there is more than one forwarding rule desired
Use Case
Often when connecting into a VPC to run something locally, you might have a database instance and a elastic cache instance or something similar. Being able to forward ports for both of them on a single command is simpler than running multiple ssh commands.
Proposed Solution
Wish I was more of a python developer, but it seems like there should be a way to tag an argument as one that can be provided multiple times and then just loop through those arguments when creating the ssh command and adding the "-L" options to it.
Other Information
I tried putting multiple --local-forwarding parameters but it only seems to use the last one
Acknowledgements
CLI version used
aws-cli/2.13.22 Python/3.11.5 Windows/10 exe/AMD64 prompt/off
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: