AWS Fundamentals Logo
AWS Fundamentals
AWS::GameLift::Script

GameLift Script

The AWS::GameLift::Script resource creates a new script record for your Realtime Servers script. Realtime scripts are JavaScript that provide configuration settings and optional custom game logic for your game. The script is deployed when you create a Realtime Servers fleet to host your game sessions. Script logic is executed during an active game session.

Properties

5 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
StorageLocation
S3Location
Required
Name
string
NodeJsVersion
string
Create-only
Tags
Array<Tag>
Version
string

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift script resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift script ARN, the resource ID matches the Id value.
CreationTimestringA time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
IdstringA unique identifier for the Realtime script
SizeOnDiskintegerThe file size of the uploaded Realtime script, expressed in bytes. When files are uploaded from an S3 location, this value remains at "0".

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::GameLift::Script

Resources:
  MyResource:
    Type: AWS::GameLift::Script
    Properties:
      StorageLocation: {}
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

gamelift:CreateScriptgamelift:ListTagsForResourcegamelift:TagResourcegamelift:DescribeScriptiam:PassRole

read

gamelift:DescribeScriptgamelift:ListScriptsgamelift:ListTagsForResource

delete

gamelift:DeleteScript

list

gamelift:ListScriptsgamelift:DescribeScript

update

gamelift:DescribeScriptgamelift:UpdateScriptgamelift:ListTagsForResourcegamelift:TagResourcegamelift:UntagResourceiam:PassRole

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceGameLift
Properties9
Required1
TaggingSupported
Primary IDId

Supported Operations

CreateReadDeleteListUpdate

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NodeJsVersion

External Links