Memo: SSM Session and Port Forwarding

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
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"]}'



