forked from pierront/but3-iac
Bonus
This commit is contained in:
@@ -51,4 +51,5 @@ module "compute" {
|
||||
database_subnet_id = module.network.subnet_ids["database"]
|
||||
ssh_pub_key = var.ssh_pub_key
|
||||
service_account_email = module.iam.service_account_email
|
||||
instance_count = var.compute_instance_count
|
||||
}
|
||||
@@ -26,4 +26,10 @@ variable "instance_type" {
|
||||
type = string
|
||||
description = "Type of the VM instance"
|
||||
default = "e2-small"
|
||||
}
|
||||
|
||||
variable "compute_instance_count" {
|
||||
type = number
|
||||
description = "Number of VM instances to create"
|
||||
default = 2
|
||||
}
|
||||
Reference in New Issue
Block a user