» google_game_services_game_server_deployment_rollout

This represents the rollout state. This is part of the game server deployment.

To get more information about GameServerDeploymentRollout, see:

» Example Usage - Game Service Deployment Rollout Basic

resource "google_game_services_game_server_deployment" "default" {
  provider = google-beta

  deployment_id  = "tf-test-deployment"
  description = "a deployment description"
}

resource "google_game_services_game_server_config" "default" {
  provider = google-beta

  config_id     = "tf-test-config"
  deployment_id = google_game_services_game_server_deployment.default.deployment_id
  description   = "a config description"

  fleet_configs {
    name       = "some-non-guid"
    fleet_spec = jsonencode({ "replicas" : 1, "scheduling" : "Packed", "template" : { "metadata" : { "name" : "tf-test-game-server-template" }, "spec" : { "template" : { "spec" : { "containers" : [{ "name" : "simple-udp-server", "image" : "gcr.io/agones-images/udp-server:0.14" }] } } } } })

    // Alternate usage:
    // fleet_spec = file(fleet_configs.json)
  }
}

resource "google_game_services_game_server_deployment_rollout" "default" {
  provider = google-beta

  deployment_id              = google_game_services_game_server_deployment.default.deployment_id
  default_game_server_config = google_game_services_game_server_config.default.name
}

» Argument Reference

The following arguments are supported:

  • deployment_id - (Required) The deployment to rollout the new config to. Only 1 rollout must be associated with each deployment.

  • default_game_server_config - (Required) This field points to the game server config that is applied by default to all realms and clusters. For example, projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config.


  • game_server_config_overrides - (Optional) The game_server_config_overrides contains the per game server config overrides. The overrides are processed in the order they are listed. As soon as a match is found for a cluster, the rest of the list is not processed. Structure is documented below.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

The game_server_config_overrides block supports:

The realms_selector block supports:

  • realms - (Optional) List of realms to match against.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/{{project}}/locations/global/gameServerDeployments/{{deployment_id}}/rollout

  • name - The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • update - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

GameServerDeploymentRollout can be imported using any of these accepted formats:

$ terraform import -provider=google-beta google_game_services_game_server_deployment_rollout.default projects/{{project}}/locations/global/gameServerDeployments/{{deployment_id}}/rollout/{{name}}
$ terraform import -provider=google-beta google_game_services_game_server_deployment_rollout.default {{project}}/{{deployment_id}}/{{name}}
$ terraform import -provider=google-beta google_game_services_game_server_deployment_rollout.default {{deployment_id}}/{{name}}

» User Project Overrides

This resource supports User Project Overrides.