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
gefragt vor einem Jahr696 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen