AWS gameliftservers documentation change
Summary
Added documentation about Node.js runtime version selection and optional install script capability for customizing the runtime environment
Security assessment
The changes introduce feature documentation for runtime customization and install scripts. While install scripts could impact security if misconfigured, there's no evidence of addressing a specific vulnerability. The example shows version management without security context.
Diff
diff --git a/gameliftservers/latest/realtimeguide/realtime-script-uploading.md b/gameliftservers/latest/realtimeguide/realtime-script-uploading.md index b6c091798..d1344feab 100644 --- a//gameliftservers/latest/realtimeguide/realtime-script-uploading.md +++ b//gameliftservers/latest/realtimeguide/realtime-script-uploading.md @@ -10,0 +11,2 @@ When you're ready to deploy Amazon GameLift Servers Realtime for your game, uplo +When creating a script, you can choose the Node.js runtime version. Node.js 24.x runs on Amazon Linux 2023, while Node.js 10.x uses Amazon Linux 2. Amazon GameLift Servers automatically manages Node.js minor and patch version updates for new fleets. The runtime will remain unchanged for a fleet once it is created. If you would like to pick a specific minor and patch version of Node.js you can install it using an install script. See Add an install script (optional). + @@ -23 +25,10 @@ You can store your zipped script files in either a local file directory or in an -###### Topics +### Add an install script (optional) + +Similar to [ Add a build install script](https://docs.aws.amazon.com/gameliftservers/latest/developerguide/gamelift-build-cli-uploading-install.html) for an Amazon GameLift Servers build, you can optionally add an install script to customize the runtime environment for your Realtime script. This feature is only available for scripts using Node.js version 24.x and later. + +To add an install script, include a file named `install.sh` in the root directory of your script .zip file. Amazon GameLift Servers will automatically detect and execute this script during fleet deployment. + +###### Example Install script example + +This example `install.sh` file installs Node.js 24.10.0 to replace the default Node.js 24.x runtime: + @@ -24,0 +36 @@ You can store your zipped script files in either a local file directory or in an + #!/bin/bash @@ -25,0 +38,2 @@ You can store your zipped script files in either a local file directory or in an + # Remove existing Node.js installation + sudo rm -rf /local/NodeJS/* @@ -26,0 +41,2 @@ You can store your zipped script files in either a local file directory or in an + # Install Node.js v24.10.0 + curl -L https://nodejs.org/dist/v24.10.0/node-v24.10.0-linux-x64.tar.xz | sudo tar -xJ -C /local/NodeJS --strip-components=1