2 Answers
- Newest
- Most votes
- Most comments
0
Hey Merih,
Yes, the expected method for accessing compute on SDK 5 fleets is through SSM; however, you won't be able to create an SSM session through the console. You should be able to connect via the aws cli:
// Step 1 : Acquire credentials to start a session
aws gamelift get-compute-access --fleet-id <fleet_id> --region <region_where_fleet_is_created> --compute-name <instance_id>
// Step 2: Expected response
{
"FleetId": "<FleetId>",
"Credentials": {
"AccessKeyId": "<ACCESS_KEY_ID_PLACEHOLDER>",
"SecretAccessKey": "<SECRET_ACCESS_KEY_PLACEHOLDER>",
"SessionToken": "<SESSION_TOKEN_PLACEHOLDER>"
}
}
// Step 3: Export credentials obtained from previous call
export AWS_ACCESS_KEY_ID=<ACCESS_KEY_ID_PLACEHOLDER>
export AWS_SECRET_ACCESS_KEY=<SECRET_ACCESS_KEY_PLACEHOLDER>
export AWS_SESSION_TOKEN=<SESSION_TOKEN_PLACEHOLDER>
// Step 4:
aws ssm start-session --target <instance_id> --region <location_where_instance_exists>
Let us know if you're still having trouble even with the above steps, and I've reached out to the team about updating our documentation.
Regards!
0
Hi Jackson!
I'm now able to connect to the instance and start a PowerShell session.
Thank you very much for your help.
Cheers,
Merih
answered 2 years ago
That's great to here!
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 23 days ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
That works perfectly. Thanks Jackson. Now, I need to debug an issue with my game server. How can I download files (e.g.: logs, crash dumps) to my local computer from the instance through an ssm session?
They just answer how to connect, like they are not answering 1 step further of the answer omg.