The AWS::GameLift::Alias resource creates an alias for an Amazon GameLift (GameLift) fleet destination.
resource "awscc_gamelift_alias" "example" {
name = "simple"
description = "alias uses SIMPLE routing strategy"
routing_strategy = {
type = "SIMPLE"
fleet_id = awscc_gamelift_fleet.example.fleet_id
}
}
resource "awscc_gamelift_alias" "example" {
name = "terminal"
description = "alias uses TERMINAL routing strategy"
routing_strategy = {
type = "TERMINAL"
message = "Terminal routing strategy message"
}
}
name
(String) A descriptive label that is associated with an alias. Alias names do not need to be unique.routing_strategy
(Attributes) A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message. (see below for nested schema)description
(String) A human-readable description of the alias.alias_id
(String) Unique alias IDid
(String) Uniquely identifies the resource.routing_strategy
Required:
type
(String) Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.Optional:
fleet_id
(String) A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.message
(String) The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.Import is supported using the following syntax:
$ terraform import awscc_gamelift_alias.example <resource ID>