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개 답변
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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠