Refactor compute-vm to remove multiple instance support (#314)
* first iteration, largely untested * basic tests pass * basic tests pass * nic test * disk tests, refactor * fix tests * update README * update gcs to bq example * fix README examples, do not create disks for template * fix data solutions examples * update cloud operations examples * update networking examples, mig and ilb modules examples * update default image to debian 11 * update README table
This commit is contained in:
committed by
GitHub
parent
0bceb328d4
commit
262f823464
@@ -14,11 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
variable "attached_disks" {
|
||||
description = "Additional disks, if options is null defaults will be used in its place. Source type is one of 'image' (zonal disks in vms and template), 'snapshot' (vm), 'existing', and null."
|
||||
type = list(object({
|
||||
name = string
|
||||
size = string
|
||||
source = string
|
||||
source_type = string
|
||||
options = object({
|
||||
mode = string
|
||||
replica_zone = string
|
||||
type = string
|
||||
})
|
||||
}))
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "attached_disk_defaults" {
|
||||
description = "Defaults for attached disks options."
|
||||
type = object({
|
||||
mode = string
|
||||
replica_zone = string
|
||||
type = string
|
||||
})
|
||||
default = {
|
||||
mode = "READ_WRITE"
|
||||
replica_zone = null
|
||||
type = "pd-balanced"
|
||||
}
|
||||
}
|
||||
|
||||
variable "confidential_compute" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "create_template" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "group" {
|
||||
type = any
|
||||
default = null
|
||||
@@ -29,31 +64,21 @@ variable "iam" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "instance_count" {
|
||||
type = number
|
||||
default = 1
|
||||
}
|
||||
|
||||
variable "metadata" {
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "metadata_list" {
|
||||
type = list(map(string))
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "network_interfaces" {
|
||||
type = list(object({
|
||||
nat = bool
|
||||
network = string
|
||||
subnetwork = string
|
||||
addresses = object({
|
||||
internal = list(string)
|
||||
external = list(string)
|
||||
internal = string
|
||||
external = string
|
||||
})
|
||||
alias_ips = map(list(string))
|
||||
alias_ips = map(string)
|
||||
}))
|
||||
default = [{
|
||||
network = "https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default",
|
||||
@@ -68,18 +93,3 @@ variable "service_account_create" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "single_name" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "use_instance_template" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "zones" {
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user