Creates a basic GameLift game server group with two instance types and a launch template.

Terraform Template

resource "aws_gamelift_game_server_group" "example" {
  depends_on = ["aws_iam_role_policy_attachment.example"]
  game_server_group_name = "example"

  instance_definition {
    instance_type = "c5.large"
  }

  instance_definition {
    instance_type = "c5a.large"
  }

  launch_template {
    id = "aws_launch_template.example.id"
  }
  max_size = 1
  min_size = 1
  role_arn = "aws_iam_role.example.arn"
}