Skip to content

googleGameServicesGameServerDeployment

A game server deployment resource.

To get more information about GameServerDeployment, see:

Example Usage - Game Service Deployment Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.gameServicesGameServerDeployment.GameServicesGameServerDeployment(
  this,
  "default",
  {
    deployment_id: "tf-test-deployment",
    description: "a deployment description",
  }
);

Argument Reference

The following arguments are supported:

  • deploymentId - (Required) A unique id for the deployment.

  • description - (Optional) Human readable description of the game server deployment.

  • location - (Optional) Location of the Deployment.

  • labels - (Optional) The labels associated with this game server deployment. Each label is a key-value pair.

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

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/{{location}}/gameServerDeployments/{{deploymentId}}

  • name - The resource id of the game server deployment, eg: projects/{projectId}/locations/{location}/gameServerDeployments/{deploymentId}. For example, projects/myProject/locations/{location}/gameServerDeployments/myDeployment.

Timeouts

This resource provides the following Timeouts configuration options:

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

Import

GameServerDeployment can be imported using any of these accepted formats:

$ terraform import google_game_services_game_server_deployment.default projects/{{project}}/locations/{{location}}/gameServerDeployments/{{deployment_id}}
$ terraform import google_game_services_game_server_deployment.default {{project}}/{{location}}/{{deployment_id}}
$ terraform import google_game_services_game_server_deployment.default {{location}}/{{deployment_id}}

User Project Overrides

This resource supports User Project Overrides.