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_config" {
source="./modules/google-beta/r/google_game_services_game_server_config"# config_id - (required) is a type of stringconfig_id=null# deployment_id - (required) is a type of stringdeployment_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=nullfleet_configs=[{
fleet_spec =null
name =null
}]
scaling_configs=[{
fleet_autoscaler_spec =null
name =null
schedules = [{
cron_job_duration =null
cron_spec =null
end_time =null
start_time =null
}]
selectors = [{
labels = {}
}]
}]
timeouts=[{
create =null
delete =null
}]
}
variable"config_id" {
description="(required) - A unique id for the deployment config."type=string
}
variable"deployment_id" {
description="(required) - A unique id for the deployment."type=string
}
variable"description" {
description="(optional) - The description of the game server config."type=stringdefault=null
}
variable"labels" {
description="(optional) - The labels associated with this game server config. Each label is a\nkey-value pair."type=map(string)
default=null
}
variable"location" {
description="(optional) - Location of the Deployment."type=stringdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"fleet_configs" {
description="nested block: NestingList, min items: 1, max items: 0"type=set(object(
{
fleet_spec =string
name =string
}
))
}
variable"scaling_configs" {
description="nested block: NestingList, min items: 0, max items: 0"type=set(object(
{
fleet_autoscaler_spec =string
name =string
schedules =list(object(
{
cron_job_duration =string
cron_spec =string
end_time =string
start_time =string
}
))
selectors =list(object(
{
labels =map(string)
}
))
}
))
default=[]
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
}
))
default=[]
}
resource"google_game_services_game_server_config""this" {
# config_id - (required) is a type of stringconfig_id=var.config_id# deployment_id - (required) is a type of stringdeployment_id=var.deployment_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.projectdynamic"fleet_configs" {
for_each=var.fleet_configscontent {
# fleet_spec - (required) is a type of stringfleet_spec=fleet_configs.value["fleet_spec"]
# name - (optional) is a type of stringname=fleet_configs.value["name"]
}
}
dynamic"scaling_configs" {
for_each=var.scaling_configscontent {
# fleet_autoscaler_spec - (required) is a type of stringfleet_autoscaler_spec=scaling_configs.value["fleet_autoscaler_spec"]
# name - (required) is a type of stringname=scaling_configs.value["name"]
dynamic"schedules" {
for_each=scaling_configs.value.schedulescontent {
# cron_job_duration - (optional) is a type of stringcron_job_duration=schedules.value["cron_job_duration"]
# cron_spec - (optional) is a type of stringcron_spec=schedules.value["cron_spec"]
# end_time - (optional) is a type of stringend_time=schedules.value["end_time"]
# start_time - (optional) is a type of stringstart_time=schedules.value["start_time"]
}
}
dynamic"selectors" {
for_each=scaling_configs.value.selectorscontent {
# labels - (optional) is a type of map of stringlabels=selectors.value["labels"]
}
}
}
}
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"]
}
}
}