User Tools

Site Tools


cloud:aws:system_manager

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cloud:aws:system_manager [2020/09/24 14:55] skipidarcloud:aws:system_manager [2023/11/01 07:13] (current) – ↷ Page moved from business_process_management:camunda:cloud:aws:system_manager to cloud:aws:system_manager skipidar
Line 4: Line 4:
 https://aws.amazon.com/blogs/aws/new-port-forwarding-using-aws-system-manager-sessions-manager/ https://aws.amazon.com/blogs/aws/new-port-forwarding-using-aws-system-manager-sessions-manager/
  
 +  - Set the region: eu-west-1
 +  - add the ProxyCommand to the ssh configuration
  
 +https://www.nclouds.com/blog/ssh-session-manager/
 <code> <code>
 +# SSH over Session Manager
  
-create the port forwarding tunnel+host i-* mi-* 
 + 
 +ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'" 
 +</code> 
 + 
 +As an alternative run the command manually 
 + 
 +<code> 
 +creates the port forwarding tunnel
 aws ssm start-session --target $INSTANCE_ID \ aws ssm start-session --target $INSTANCE_ID \
                        --document-name AWS-StartPortForwardingSession \                        --document-name AWS-StartPortForwardingSession \
                        --parameters '{"portNumber":["80"],"localPortNumber":["9999"]}'                        --parameters '{"portNumber":["80"],"localPortNumber":["9999"]}'
 +</code>
  
 +  - connect to localhost:9999 to reach "INSTANCE_ID:80"
 +
 +<code>
 Starting session with SessionId: sst-00xxx63 Starting session with SessionId: sst-00xxx63
 Port 9999 opened for sessionId sst-00xxx63 Port 9999 opened for sessionId sst-00xxx63
 Connection accepted for session sst-00xxx63. Connection accepted for session sst-00xxx63.
 </code> </code>
cloud/aws/system_manager.1600959333.txt.gz · Last modified: (external edit)