Skip to content

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...

@dnafication dnafication requested a review from mbailey as a code owner January 26, 2023 01:12
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.

1 participant