This commit is contained in:
2025-12-04 09:31:27 +01:00
parent 30e5a9d122
commit 148a40abe7
2 changed files with 26 additions and 2 deletions

View File

@@ -40,4 +40,16 @@ variable "project_id" {
description = "ID du projet" description = "ID du projet"
type = string type = string
default = "projet1-478713" default = "projet1-478713"
} }
variable "instance_type" {
description = "Type d'instance pour les VM"
type = string
default = "e2-small"
}
variable "zone" {
description = "Zone GCP"
type = string
default = "europe-west2-a"
}

View File

@@ -8,4 +8,16 @@ output "list_id" {
backend = google_compute_subnetwork.subnet_backend.id backend = google_compute_subnetwork.subnet_backend.id
database = google_compute_subnetwork.subnet_database.id database = google_compute_subnetwork.subnet_database.id
} }
} }
output "vpc_id" {
value = google_compute_network.vpc.id
}
output "subnets" {
value = {
frontend = google_compute_subnetwork.frontend.id
backend = google_compute_subnetwork.backend.id
database = google_compute_subnetwork.database.id
}
}