sudo /etc/init.d/docker start

docker build -t ssm-agent-build-image .

docker run -it --rm --name ssm-agent-build-container -v pwd:/amazon-ssm-agent ssm-agent-build-image make build-release

Conditions for AWS SSM to work on instance

  1. Must be running the SSM agent, e.g. use Amazon image with it pre-loaded
  2. The Instance must have a Instance Profile/Policy with "AmazonSSMManagedInstanceCore"
  3. The SSM endpoint must be reachable for the instance, out to internet or PrivateLink.


AWS SSM port forward windows RDP 3389 to local

  1. Install the AWS system manager plugin

  2. Install aws cli v2
  3. Login to aws.
    1. Using ~/.aws/config keys
    2. aws configure sso / aws sso login
  4. Connect and port forward

    aws ssm start-session --profile ssoMyProfile --target i-0abcdefgh --document-name AWS-StartPortForwardingSession --parameters '{"portNumber":["3389"], "localPortNumber":["3389"]}' 
  5. RDP with client e.g. Remina to localhost:3389

AWS/SSM-Systems-Manager (last edited 2021-10-09 01:33:35 by PieterSmit)