Systems Manager Fleet manager Remote Desktop from CLI or boto3

0

I have a windows instance (i-1234567890) running, ssm-agent and everything installed, it is running in a public network. When I open console and I go to: AWS Systems Manager, Node Management, Fleet Manager I select my windows instance (i-1234567890) From the menu node actions I select Connect, Connect with remote desktop In the Fleet Manager – Remote Desktop window: I select Keypair, I browse from my key pair file

Click connect, and the i have the remote desktop...

Can I do this from the cli or boto3?

Actually the nicest solution is to load the key-pair-file content from AWS Secrets Manager.

1 Respuesta
0

I think "Fleet manager Remote Desktop" is only available from the management console.

It is possible to do port forwarding with SSM Session Manager and RDP from a local computer without setting the EC2 security group.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/start-session.html

aws ssm start-session --target <ssm-managed-instance-id> --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters '{"portNumber":["3389"],"localPortNumber":["3389"],"host":["EC2 IP"]}'
profile picture
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas