- Newest
- Most votes
- Most comments
The problem was that my S3 URI was referring to a folder that contained the zip file but it had to refer to the zip file itself. Spent 4 hours today trying to figure out what's wrong. As soon as I accidentally doubleclicked on the Choose s3 bucket > doubleclicked > clicked on the zip file all the roles that I had created showed up as available options. Really really silly
The issue you're experiencing with no IAM roles appearing in the dropdown when creating a build in Amazon GameLift is likely due to missing permissions or an incorrect setup. Here are some steps to troubleshoot and resolve this issue:
-
Ensure you have the correct permissions to pass IAM roles to GameLift. Your IAM user or role should have the "iam:PassRole" permission. This allows you to pass roles to GameLift when creating builds.
-
When creating the IAM role for GameLift, make sure to follow these steps:
- Create a new role
- Choose AWS service as the trusted entity
- Select GameLift as the use case
- Attach the necessary permissions policy (such as access to S3)
- Review and create the role
-
The trust policy for the role should look like this:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "gamelift.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }
-
For the permissions policy, you can use a more specific policy that grants only the necessary S3 actions:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetObjectVersion" ], "Resource": "arn:aws:s3:::your-bucket-name/*" } ] }
-
Make sure you're in the correct AWS region when creating the build and that the IAM role is in the same region.
-
If you've recently created the role, there might be a slight delay before it appears in the dropdown. Try refreshing the page after a few minutes.
-
Verify that your IAM user has permissions to list and retrieve IAM roles.
If you've followed these steps and are still unable to see any roles in the dropdown, you may need to contact AWS support for further assistance, as there could be an account-specific issue or a temporary service problem.
Sources
Set up an IAM service role for Amazon GameLift - Amazon GameLift
IAM permission examples for Amazon GameLift - Amazon GameLift
Create a build with files in Amazon S3 - Amazon GameLift
I am creating everything from a root user to exclude any chance of missing permissions from the current user. Everything else was already like that. I have been creating roles and waiting for them to show up for 4 hours now, they do not show up. I have refreshed page and logged in and out several times.
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago