Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Upload script files from a local directory

Focus mode
Upload script files from a local directory - Amazon GameLift Servers

If you have your script files stored locally, you can upload them to Amazon GameLift Servers from there. To create the script resource, use either the Amazon GameLift Servers console or the AWS Command Line Interface (AWS CLI).

Amazon GameLift Servers console
To create a script resource
  1. Open the Amazon GameLift Servers console.

  2. In the navigation pane, choose Hosting, Scripts.

  3. On the Scripts page, choose Create script.

  4. On the Create script page, under Script settings, do the following:

    1. For Name, enter a script name.

    2. (Optional) For Version, enter version information. Because you can update the content of a script, version data can be helpful in tracking updates.

    3. For Script source, choose Upload a .zip file.

    4. For Script files, choose Choose file, browse for the .zip file that contains your script, and then choose that file.

  5. (Optional) Under Tags, add tags to the script by entering Key and Value pairs.

  6. Choose Create.

    Amazon GameLift Servers assigns an ID to the new script and uploads the designated .zip file. You can view the new script, including its status, on the Scripts page.

AWS CLI

Use the create-script AWS CLI command to define the new script and upload your server script files.

To create a script resource
  1. Place the .zip file into a directory where you can use the AWS CLI.

  2. Open a command line window and switch to the directory where you placed the .zip file.

  3. Enter the following create-script command and parameters. For the --zip-file parameter, be sure to add the string fileb:// to the name of the .zip file. It identifies the file as binary so that Amazon GameLift Servers processes the compressed content.

    aws gamelift create-script \ --name user-defined name of script \ --script-version user-defined version info \ --zip-file fileb://name of zip file \ --region region name

    Example

    aws gamelift create-script \ --name "My_Realtime_Server_Script_1" \ --script-version "1.0.0" \ --zip-file fileb://myrealtime_script_1.0.0.zip \ --region us-west-2

    In response to your request, Amazon GameLift Servers returns the new script object.

  4. To view the new script, call describe-script.

To create a script resource
  1. Open the Amazon GameLift Servers console.

  2. In the navigation pane, choose Hosting, Scripts.

  3. On the Scripts page, choose Create script.

  4. On the Create script page, under Script settings, do the following:

    1. For Name, enter a script name.

    2. (Optional) For Version, enter version information. Because you can update the content of a script, version data can be helpful in tracking updates.

    3. For Script source, choose Upload a .zip file.

    4. For Script files, choose Choose file, browse for the .zip file that contains your script, and then choose that file.

  5. (Optional) Under Tags, add tags to the script by entering Key and Value pairs.

  6. Choose Create.

    Amazon GameLift Servers assigns an ID to the new script and uploads the designated .zip file. You can view the new script, including its status, on the Scripts page.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.