gjbae1212 / gossm

💻Interactive CLI tool that you can connect to ec2 using commands same as start-session, ssh in AWS SSM Session Manager
MIT License
423 stars 51 forks source link

Feature Request: Add Command for Port-Forwarding #32

Closed tedsmitt closed 3 years ago

tedsmitt commented 3 years ago

On top of the already useful command set of this tool, I think it can be improved even further by adding a Port-Forwarding command.

Making use of the AWS-StartPortForwardingSession SSM Document we can start a Port-Forwarding session entirely over SSM (See here for an overview).

I have spiked this locally where I've added the fwd command. It prompts the user for the remote port to access and the local port to forward after selecting a target.

image image

Ports can be specified before selecting a target too, using the -z and -l args.

image

I already have this written up and ready for a PR. Are there any objections to adding this to the existing command set?

tedsmitt commented 3 years ago

Created PR https://github.com/gjbae1212/gossm/pull/33

gjbae1212 commented 3 years ago

@tedsmitt Apply it. gossm v1.3.2.