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

Add ability to have multiple --local-forwarding arguments to ec2-instance-connect ssh command #9101

Open
2 tasks
lludsubaru opened this issue Nov 22, 2024 · 0 comments
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@lludsubaru
Copy link

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

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

@lludsubaru lludsubaru added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant