Skip to main content

Command Palette

Search for a command to run...

Memo: SSM Session and Port Forwarding

Updated
1 min read
Memo: SSM Session and Port Forwarding
B

I love to grease knots and bolts of SDLC, nurture the underlying infra, rightly automate, monitor systems and enable the dev teams to achieve more with less.

Docs

Install

Session Manger Plugin

AWS SSM Proxy. Optional

Start basic ssh connection

    aws ssm start-session \
    --target i-askfsa8asld

Port Forwarding

aws ssm start-session \
    --target i-00e68c055d1c0b087 \
    --document-name AWS-StartPortForwardingSession \
    --parameters '{"portNumber":["remote-host-port"], "localPortNumber":["local-port"]}'

Port Forwarding to Remote host

aws ssm start-session \
    --target i-00e68c055d1c0b087 \
    --document-name AWS-StartPortForwardingSessionToRemoteHost \
    --parameters '{"host":["remote-host-ip"],"portNumber":["remote-host-port"], "localPortNumber":["local-port"]}'