Resource: aws_gamelift_fleet

Provides a GameLift Fleet resource.

Example Usage

resource "aws_gamelift_fleet" "example" {
  build_id          = aws_gamelift_build.example.id
  ec2_instance_type = "t2.micro"
  fleet_type        = "ON_DEMAND"
  name              = "example-fleet-name"

  runtime_configuration {
    server_process {
      concurrent_executions = 1
      launch_path           = "C:\\game\\GomokuServer.exe"
    }
  }
}

Argument Reference

This resource supports the following arguments:

Nested Fields

certificate_configuration

ec2_inbound_permission

resource_creation_limit_policy

runtime_configuration

server_process

Attribute Reference

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

Timeouts

Configuration options:

Import

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

import {
  to = aws_gamelift_fleet.example
  id = "<fleet-id>"
}

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

% terraform import aws_gamelift_fleet.example <fleet-id>