setup/infra/private-cluster/turn-mig/variables.tf (105 lines of code) (raw):

/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ variable "project_id" { description = "Project id where the instances will be created." type = string } variable "region" { description = "Region for external addresses." type = string } variable "zones" { description = "Distribution policy zones" type = list(string) default = [] } variable "subnetwork" { description = "Self link of the VPC subnet to use for the internal interface." type = string } variable "instance_count" { description = "Number of instances to create." type = number default = 1 } variable "machine_type" { description = "Instance machine type." type = string default = "e2-standard-2" } variable "scopes" { description = "Instance scopes." type = list(string) default = [ "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", "https://www.googleapis.com/auth/monitoring.write", "https://www.googleapis.com/auth/pubsub", "https://www.googleapis.com/auth/service.management.readonly", "https://www.googleapis.com/auth/servicecontrol", "https://www.googleapis.com/auth/trace.append", ] } variable "service_account" { description = "Instance service account." type = string default = "" } variable "name" { description = "name used in prefix of instances" default = "turn" } variable "disk_size_gb" { description = "Size of the boot disk." type = number default = 10 } variable "disk_type" { description = "Type of boot disk" default = "pd-standard" } variable "vm_tags" { description = "Additional network tags for the instances." type = list(string) default = [ "gke-turn", "allow-ssh" ] } variable "preemptible" { description = "Make the instance preemptible" default = false } variable "stackdriver_logging" { description = "Enable the Stackdriver logging agent." type = bool default = true } variable "stackdriver_monitoring" { description = "Enable the Stackdriver monitoring agent." type = bool default = true } variable "allow_stopping_for_update" { description = "Allow stopping the instance for specific Terraform changes." type = bool default = false } variable "cloud_init_custom_var" { description = "String passed in to the cloud-config template as custome variable." type = string default = "" }