fix/feature: fix network & add compute

This commit is contained in:
2025-12-04 10:52:30 +01:00
parent 14f4e37a02
commit 8aad0f4d1a
5 changed files with 55 additions and 52 deletions

View File

@@ -23,3 +23,12 @@ module "network" {
database_cidr = var.database_cidr
ssh_source_ranges = var.ssh_source_ranges
}
module "compute" {
source = "../../modules/compute"
instance_type = var.instance_type
zone = var.zone
frontend_subnet_id = module.network.subnets.frontend
backend_subnet_id = module.network.subnets.backend
database_subnet_id = module.network.subnets.database
}

View File

@@ -33,3 +33,14 @@ variable "ssh_source_ranges" {
default = "0.0.0.0/0"
}
variable "instance_type" {
description = "type de l'instance"
type = string
default = "e2-small"
}
variable "zone" {
description = "Nom de la zone"
type = string
default = "europe-west9-b"
}