RDP to EC2 Instance with SSM

0

Hello,

I'm trying to figure out how to RDP to an EC2 instance of a GameLift fleet server (using SDK 5). I'm following this guide:

https://awscloudsecvirtualevent.com/workshops/module1/rdp/

But i seem to be struggling at the last stages where i need to use this command:

aws ssm start-session --target <instance-id> --document-name AWS-StartPortForwardingSession --parameters "localPortNumber=55678,portNumber=3389"

It's giving me this error:

An error occurred (AccessDeniedException) when calling the StartSession operation: User: arn:aws:sts::123456:assumed-role/FleetServiceEC2Access-DataPlaneRole-FRA/FleetsService-GetComputeAccess-1234-1234-1234-1234-1234 is not authorized to perform: ssm:StartSession on resource: arn:aws:ssm:eu-central-1::document/AWS-StartPortForwardingSession because no session policy allows the ssm:StartSession action

Any idea what kind of policy i need to add? (Already using the "AmazonSSMFullAccess" policy on the user) Or is there a better way of getting RDP access to the GameLift server?

Elie
질문됨 6달 전365회 조회
1개 답변
0

It looks like your assuming a role called FleetServiceEC2Access-DataPlaneRole-FRA. Ensure this role as the appropiate access. It could be different than the IAM used which has AmazonSSMFullAccess

Have you tried RDP Directly from Fleet Manager in ssm instead of via port forwarding?

profile picture
전문가
답변함 6달 전

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

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

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

관련 콘텐츠