Google Game Servers Game Services Game Server Cluster
This page shows how to write Terraform for Game Servers Game Services Game Server Cluster and write them securely.
google_game_services_game_server_cluster (Terraform)
The Game Services Game Server Cluster in Game Servers can be configured in Terraform with the resource name google_game_services_game_server_cluster
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "google_game_services_game_server_cluster" "this" {
cluster_id = var.cluster_id
description = var.description
labels = var.labels
location = var.location
project = var.project
resource "google_game_services_game_server_cluster" "default" {
provider = google-beta
cluster_id = ""
realm_id = 1234
Parameters
-
cluster_id
required - string
Required. The resource name of the game server cluster
-
description
optional - string
Human readable description of the cluster.
The labels associated with this game server cluster. Each label is a key-value pair.
-
location
optional - string
Location of the Cluster.
-
name
optional computed - string
The resource id of the game server cluster, eg: 'projects/[project_id]/locations/[location]/realms/[realm_id]/gameServerClusters/[cluster_id]'. For example, 'projects/my-project/locations/[location]/realms/zanzibar/gameServerClusters/my-onprem-cluster'.
The realm id of the game server realm.
-
connection_info
list block-
namespace
required - string
Namespace designated on the game server cluster where the game server instances will be created. The namespace existence will be validated during creation.
-
gke_cluster_reference
list block-
cluster
required - string
The full or partial name of a GKE cluster, using one of the following forms: 'projects/[project_id]/locations/[location]/clusters/[cluster_id]' 'locations/[location]/clusters/[cluster_id]' * '[cluster_id]' If project and location are not specified, the project and location of the GameServerCluster resource are used to generate the full name of the GKE cluster.
-
-
-
timeouts
single block
Explanation in Terraform Registry
A game server cluster resource. To get more information about GameServerCluster, see:
- API documentation
- How-to Guides
Frequently asked questions
What is Google Game Servers Game Services Game Server Cluster?
Google Game Servers Game Services Game Server Cluster is a resource for Game Servers of Google Cloud Platform. Settings can be wrote in Terraform.
Where can I find the example code for the Google Game Servers Game Services Game Server Cluster?
For Terraform, the niveklabs/google and roger-beathard/simple-tf-policy-tool source code examples are useful. See the Terraform Example section for further details.