You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_game_services_game_server_cluster" {
source="./modules/google-beta/r/google_game_services_game_server_cluster"# cluster_id - (required) is a type of stringcluster_id=null# description - (optional) is a type of stringdescription=null# labels - (optional) is a type of map of stringlabels={}
# location - (optional) is a type of stringlocation=null# project - (optional) is a type of stringproject=null# realm_id - (required) is a type of stringrealm_id=nullconnection_info=[{
gke_cluster_reference = [{
cluster =null
}]
namespace =null
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
variable"cluster_id" {
description="(required) - Required. The resource name of the game server cluster"type=string
}
variable"description" {
description="(optional) - Human readable description of the cluster."type=stringdefault=null
}
variable"labels" {
description="(optional) - The labels associated with this game server cluster. Each label is a\nkey-value pair."type=map(string)
default=null
}
variable"location" {
description="(optional) - Location of the Cluster."type=stringdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"realm_id" {
description="(required) - The realm id of the game server realm."type=string
}
variable"connection_info" {
description="nested block: NestingList, min items: 1, max items: 1"type=set(object(
{
gke_cluster_reference =list(object(
{
cluster =string
}
))
namespace =string
}
))
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_game_services_game_server_cluster""this" {
# cluster_id - (required) is a type of stringcluster_id=var.cluster_id# description - (optional) is a type of stringdescription=var.description# labels - (optional) is a type of map of stringlabels=var.labels# location - (optional) is a type of stringlocation=var.location# project - (optional) is a type of stringproject=var.project# realm_id - (required) is a type of stringrealm_id=var.realm_iddynamic"connection_info" {
for_each=var.connection_infocontent {
# namespace - (required) is a type of stringnamespace=connection_info.value["namespace"]
dynamic"gke_cluster_reference" {
for_each=connection_info.value.gke_cluster_referencecontent {
# cluster - (required) is a type of stringcluster=gke_cluster_reference.value["cluster"]
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}