AWS::GameLift::ScriptThe 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.
5 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
StorageLocation | S3Location | Required |
Name | string | |
NodeJsVersion | string | Create-only |
Tags | Array<Tag> | |
Version | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | The 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. |
CreationTime | string | A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). |
Id | string | A unique identifier for the Realtime script |
SizeOnDisk | integer | The file size of the uploaded Realtime script, expressed in bytes. When files are uploaded from an S3 location, this value remains at "0". |
A minimal template with required properties and common optional ones.
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"Permissions CloudFormation needs in your IAM role to manage this resource.
gamelift:CreateScriptgamelift:ListTagsForResourcegamelift:TagResourcegamelift:DescribeScriptiam:PassRolegamelift:DescribeScriptgamelift:ListScriptsgamelift:ListTagsForResourcegamelift:DeleteScriptgamelift:ListScriptsgamelift:DescribeScriptgamelift:DescribeScriptgamelift:UpdateScriptgamelift:ListTagsForResourcegamelift:TagResourcegamelift:UntagResourceiam:PassRoleOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
NodeJsVersion