This commit is contained in:
gastonchenet
2025-12-04 11:43:33 +01:00
parent 3899fb5500
commit 2d4eb6ed74
4 changed files with 59 additions and 1 deletions

View File

@@ -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
}

View File

@@ -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
}