Provides a GameLift Alias resource.
resource "aws_gamelift_alias" "example" {
name = "example-alias"
description = "Example Description"
routing_strategy {
message = "Example Message"
type = "TERMINAL"
}
}
This resource supports the following arguments:
name
- (Required) Name of the alias.description
- (Optional) Description of the alias.routing_strategy
- (Required) Specifies the fleet and/or routing type to use for the alias.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.routing_strategy
fleet_id
- (Optional) ID of the GameLift Fleet to point the alias to.message
- (Optional) Message text to be used with the TERMINAL
routing strategy.type
- (Required) Type of routing strategyE.g., SIMPLE
or TERMINAL
This resource exports the following attributes in addition to the arguments above:
id
- Alias ID.arn
- Alias ARN.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.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>