54 lines
1.1 KiB
Terraform
54 lines
1.1 KiB
Terraform
variable "name" {
|
|
description = "The name of the VM instance."
|
|
type = string
|
|
}
|
|
|
|
variable "project_id" {
|
|
description = "The GCP project ID. If not provided, the default project will be used."
|
|
type = string
|
|
nullable = true
|
|
default = null
|
|
}
|
|
|
|
variable "machine_type" {
|
|
description = "The machine type of the VM instance."
|
|
type = string
|
|
default = "e2-micro"
|
|
}
|
|
|
|
variable "can_ip_forward" {
|
|
description = "Whether the VM instance can forward IP packets."
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "description" {
|
|
description = "The description of the VM instance."
|
|
type = string
|
|
nullable = true
|
|
default = null
|
|
}
|
|
|
|
variable "network_name" {
|
|
description = "The name of the network to attach the VM instance to."
|
|
type = string
|
|
}
|
|
|
|
variable "subnet_name" {
|
|
description = "The name of the subnet to attach the VM instance to."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh" {
|
|
description = "SSH Key(s) definition"
|
|
type = list(object({
|
|
public_key = string
|
|
ssh_user = string
|
|
}))
|
|
}
|
|
|
|
variable "remote_subnets" {
|
|
type = list(string)
|
|
default = []
|
|
}
|