CmdID / aws / aws ec2-instance-connect
aws ec2-instance-connect open-tunnel
Opens a websocket tunnel to the specified EC2 Instance or IP address. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--instance-connect-endpoint-dns-nameSpecify the EC2 Instance Connect Endpoint DNS Name that should be used to open the tunnel.--instance-connect-endpoint-idSpecify the EC2 Instance Connect Endpoint Id that should be used to open the tunnel.--instance-idSpecify the id of the EC2 instance that a tunnel should be opened for.--local-portSpecify the local port to listen on.--max-tunnel-durationSpecify the maximum time, in seconds, to keep a websocket tunnel alive for.--max-websocket-connectionsSpecify the maximum amount of websocket connections allowed when local-port is specified.--private-ip-addressSpecify the private IPv4 (or IPv6) address to open a tunnel for.--remote-portSpecify the remote port to connect to on the instance.