Resource: aws_gamelift_script

Provides an GameLift Script resource.

Example Usage

resource "aws_gamelift_script" "example" {
  name = "example-script"

  storage_location {
    bucket   = aws_s3_bucket.example.id
    key      = aws_s3_object.example.key
    role_arn = aws_iam_role.example.arn
  }
}

Argument Reference

This resource supports the following arguments:

Nested Fields

storage_location

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import GameLift Scripts using the ID. For example:

import {
  to = aws_gamelift_script.example
  id = "<script-id>"
}

Using terraform import, import GameLift Scripts using the ID. For example:

% terraform import aws_gamelift_script.example <script-id>