Unable to connect to GameLift 5.x server with ssh or ssm

1

I'm trying to Migrate to Gamelift 5.x from 3.x, in order to use the Gamelift Anywhere features. I have Anywhere working well, but am having issues with the managed EC2 instances. We're using Amazon Linux 2 and I want to connect from Windows 11.

I want to ssl into the EC2 instance in order to view logs and check configuration. I've done the following:

  • installed the Session Manager plugin for Windows
  • run 'aws gamelift describe-instances' to get the instance id
  • run 'aws gamelift get-compute-access' to get the credentials
  • set the credentials as env vars using 'set AWS_ACCESS_KEY_ID=', set 'AWS_SECRET_ACCESS_KEY=' and 'set AWS_SESSION_TOKEN='
  • attempted to connect using 'aws ssm start-session --target <instanceID>'

I then get the following message:

Starting session with SessionId: FleetsService-GetComputeAccess-036ff633-615e-452e-9fb4-a686f567f-04511a8dd00452bac

SessionId: FleetsService-GetComputeAccess-036ff633-615e-452e-9fb4-a686f567f-04511a8dd00452bac : Plugin with name Standard_Stream not found. Step name: Standard_Stream

I haven't found any clue on what to do here, other than suggestions to ssh into the EC2 instance and check the configuration there. But ssh-ing in is exactly what I'm trying to do.

asked a year ago248 views
1 Answer
0

Hello, If your are trying to add SSM agent to an Anywhere fleet, even if the server is on AWS or not, please refer to this link.

Be sure to check if the role you are assigning to the server has SSM permisions like(AmazonEC2RoleforSSM) aws Managed policy.

Finally for your error it is usually disk related, please be sure to:

  1. Expand the EBS root volume
  2. Restart the instance
  3. Access your instance
  4. Check the inotify cat /proc/sys/fs/inotify/max_user_watches
  5. Modify the value to the one you think fits better echo "fs.inotify.max_user_watches=1048576" >> /etc/sysctl.conf sysctl -p

Remember you can always open a support case so you can get Official AWS support

AWS
answered 10 months ago
  • Hello, thanks for your reply. However, as mentioned in the original post, I am not trying to add an SSM agent to an Anywhere fleet. The Anywhere fleet is working fine. I am trying to ssh into a managed EC2 Gamelift instance.

  • Hi Isaac, did you tried the last part of the answer I provided, Usually that error is related to the inotify usage of the instance, and again, the AWS support will help a lot when dealing with this type of errors.

  • Hi gasamoma, no I did not try the last part, as step 3 "Access your instance" is exactly what I can't do, as mentioned in the original post.

    What I'm trying to do is connect to my instance via ssh. Note that this is an instance managed by Gamelift 5.x.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions