Upload script files from Amazon S3
You can store your script files in an Amazon S3 bucket and upload them to Amazon GameLift Servers from there. When you create your script, you specify the S3 bucket location and Amazon GameLift Servers retrieves your script files from Amazon S3.
To create a script resource
-
Store your script files in an S3 bucket. Create a .zip file containing your server script files and upload it to an S3 bucket in an AWS account that you control. Take note of the object URI—you need this when creating a Amazon GameLift Servers script.
Note
Amazon GameLift Servers doesn't support uploading from S3 buckets with names that contain a period (.).
-
Give Amazon GameLift Servers access to your script files. To create an AWS Identity and Access Management (IAM) role that allows Amazon GameLift Servers to access the S3 bucket containing your server script, follow the instructions in Set up an IAM service role for Amazon GameLift Servers. After you create the new role, take note of its name, which you need when creating a script.
-
Create a script. Use the Amazon GameLift Servers console or the AWS CLI to create a new script record. To make this request, you must have the IAM
PassRole
permission, as described in IAM permission examples for Amazon GameLift Servers.