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
已提问 1 年前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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则