googleGameServicesGameServerDeploymentRollout
This represents the rollout state. This is part of the game server deployment.
To get more information about GameServerDeploymentRollout, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Game Service Deployment Rollout 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.*/
const googleGameServicesGameServerDeploymentDefault =
new google.gameServicesGameServerDeployment.GameServicesGameServerDeployment(
this,
"default",
{
deployment_id: "tf-test-deployment",
description: "a deployment description",
}
);
const googleGameServicesGameServerConfigDefault =
new google.gameServicesGameServerConfig.GameServicesGameServerConfig(
this,
"default_1",
{
config_id: "tf-test-config",
deployment_id: googleGameServicesGameServerDeploymentDefault.deploymentId,
description: "a config description",
fleet_configs: [
{
fleet_spec:
'${jsonencode({ "replicas" : 1, "scheduling" : "Packed", "template" : { "metadata" : { "name" : "tf-test-game-server-template" }, "spec" : { "ports": [{"name": "default", "portPolicy": "Dynamic", "containerPort": 7654, "protocol": "UDP"}], "template" : { "spec" : { "containers" : [{ "name" : "simple-udp-server", "image" : "gcr.io/agones-images/udp-server:0.14" }] } } } } })}',
name: "some-non-guid",
},
],
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
googleGameServicesGameServerConfigDefault.overrideLogicalId("default");
const googleGameServicesGameServerDeploymentRolloutDefault =
new google.gameServicesGameServerDeploymentRollout.GameServicesGameServerDeploymentRollout(
this,
"default_2",
{
default_game_server_config:
googleGameServicesGameServerConfigDefault.name,
deployment_id: googleGameServicesGameServerDeploymentDefault.deploymentId,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
googleGameServicesGameServerDeploymentRolloutDefault.overrideLogicalId(
"default"
);
Argument Reference
The following arguments are supported:
-
deploymentId
- (Required) The deployment to rollout the new config to. Only 1 rollout must be associated with each deployment. -
defaultGameServerConfig
- (Required) This field points to the game server config that is applied by default to all realms and clusters. For example,projects/myProject/locations/global/gameServerDeployments/myGame/configs/myConfig
.
-
gameServerConfigOverrides
- (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 gameServerConfigOverrides
block supports:
-
realmsSelector
- (Optional) Selection by realms. Structure is documented below. -
configVersion
- (Optional) Version of the configuration.
The realmsSelector
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 formatprojects/{{project}}/locations/global/gameServerDeployments/{{deploymentId}}/rollout
-
name
- The resource id of the game server deployment eg:projects/myProject/locations/global/gameServerDeployments/myDeployment/rollout
.
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
GameServerDeploymentRollout can be imported using any of these accepted formats:
$ terraform import google_game_services_game_server_deployment_rollout.default projects/{{project}}/locations/global/gameServerDeployments/{{deployment_id}}/rollout
$ terraform import google_game_services_game_server_deployment_rollout.default {{project}}/{{deployment_id}}
$ terraform import google_game_services_game_server_deployment_rollout.default {{deployment_id}}
User Project Overrides
This resource supports User Project Overrides.