Resource: aws_gamelift_alias

Provides a GameLift Alias resource.

Example Usage

resource "aws_gamelift_alias" "example" {
  name        = "example-alias"
  description = "Example Description"

  routing_strategy {
    message = "Example Message"
    type    = "TERMINAL"
  }
}

Argument Reference

This resource supports the following arguments:

Nested Fields

routing_strategy

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 Aliases using the ID. For example:

import {
  to = aws_gamelift_alias.example
  id = "<alias-id>"
}

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

% terraform import aws_gamelift_alias.example <alias-id>