How to Remotely Login to Fleet Instance Using Server SDK 5 - Outdated Documentation

2

I am attempting to remotely access a fleet instance running a linux game server for debugging. I have reviewed the documentation in [1], however these docs appear to be outdated and incompatible with SDK versions 5 and up. When attempting to run the command get-instance-access in the AWS CLI, I receive the following error: "An error occurred (InvalidRequestException) when calling the GetInstanceAccess operation: This API does not support fleets using builds integrated with GameLift Server SDK 5 and above. Use the GetComputeAccess operation to access this fleet resource." The security credentials retrieved when running get-compute-access are a different format to that of get-instance-access, and I am unsure how to use them to connect to the server instance using SSH.

Thanks in advance, Max

[1] https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html

Max
질문됨 일 년 전697회 조회
1개 답변
2
수락된 답변

To connect into a fleet instance running a build with SDK 5, you can run the CLI command get-compute-access to get AWS Systems Manager credentials. These are AWS temporary security credentials, which you can export as environment variables eg:

export AWS_ACCESS_KEY_ID=<AccessKeyId>
export AWS_SECRET_ACCESS_KEY=<SecretAccessKey>
export AWS_SESSION_TOKEN=<SessionToken>

Using these credentials will let you use SSM Session manager to connect into the instance by running:

aws ssm start-session --target <instanceId>
profile pictureAWS
joep
답변함 일 년 전

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

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

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

관련 콘텐츠