compute fait

This commit is contained in:
2025-12-03 17:19:47 +01:00
parent 899cf21887
commit 5b3ce9600f
6 changed files with 141 additions and 5 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 = "glossy-handler-478713-i1"
}
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"
}