ajout compute

This commit is contained in:
2025-12-04 09:10:40 +01:00
parent f48c698399
commit bdbf44c6c3
5 changed files with 168 additions and 0 deletions

View File

@@ -25,4 +25,13 @@ module "network" {
backend_cidr = var.backend_cidr
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

@@ -40,4 +40,16 @@ variable "project_id" {
description = "ID du projet"
type = string
default = "learned-trilogy-478713-j7 "
}
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"
}