terraform-modules/network/variables.tf

116 lines
1.8 KiB
HCL

variable "project_id" {
type = string
}
variable "name" {
type = string
}
variable "ipv4_gateway" {
type = string
default = null
}
variable "ipv4_nameservers" {
type = list(string)
default = []
}
variable "ipv4_prefix" {
type = string
default = null
}
variable "ipv4_prefix_length" {
type = number
default = null
}
variable "ipv6_gateway" {
type = string
default = null
}
variable "ipv6_nameservers" {
type = list(string)
default = []
}
variable "ipv6_prefix" {
type = string
default = null
}
variable "ipv6_prefix_length" {
type = number
default = null
}
variable "labels" {
type = map(string)
default = {}
}
variable "no_ipv4_gateway" {
type = bool
default = false
}
variable "no_ipv6_gateway" {
type = bool
default = false
}
variable "routed" {
type = bool
# default = true
}
variable "nic_allowed_addresses" {
type = list(string)
default = []
}
variable "nic_ipv4" {
type = string
default = null
}
variable "nic_labels" {
type = map(string)
default = {}
}
variable "nic_name" {
type = string
default = null
}
variable "nic_security" {
type = bool
default = false
nullable = false
}
variable "nic_security_group_ids" {
type = list(string)
default = []
}
variable "nics" {
type = map(object({
nic_ipv4 = optional(string)
nic_name = optional(string)
nic_allowed_addresses = optional(list(string))
nic_labels = optional(map(string))
nic_security = optional(bool)
nic_security_group_ids = optional(list(string))
nic_security_group_names = optional(list(string))
}))
default = {}
}
variable "security_group_ids_by_name" {
description = "Map of security-group names -> IDs"
type = map(string)
}