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

feat: add new function instance-ssm-port-forward-remote-host #333

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

Conversation

dnafication
Copy link

Add a new command to start a port forwarding session to a remote host through an EC2 instance. The remote host isn't required to be managed by AWS Systems Manager as long as it is accessible from the EC2 instance. Reference

# USAGE: instance-ssm-port-forward-remote-host local_port_number port_number host instance-id [instance-id]

instance-ssm-port-forward-remote-host 3306 3306 database.ap-southeast-2.rds.amazonaws.com i-xxxx
Starting session with SessionId: dina-00000000000000000
Port 3306 opened for sessionId dina-00000000000000000.
Waiting for connections...

# OR chain commands

instances jumphost | instance-ssm-port-forward-remote-host 3306 3306 database.ap-southeast-2.rds.amazonaws.com
Starting session with SessionId: dina-00000000000000000
Port 3306 opened for sessionId dina-00000000000000000.
Waiting for connections...

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.

None yet

1 participant