This commit is contained in:
Guillaume VALLAT 2024-12-06 14:28:48 +01:00
parent eb60239277
commit 8c61edd97a
2 changed files with 11 additions and 17 deletions

View File

@ -0,0 +1,11 @@
output "vpc"{
value = google_compute_network.id
}
output "subnet" {
value = {
frontend = google_compute_subnetwork.subnet1.id,
backend = google_compute_subnetwork.subnet2.id,
database = google_compute_subnetwork.subnet3.id
}
}

View File

@ -1,47 +1,30 @@
variable "project_id" {
description = "ID du projet GCP"
type = string
default = "97892"
}
variable "project_name" {
description = "nom_du_projet"
type = string
default = "terraforming"
}
variable "region" {
description = "emplacement"
type = string
default = "europe-west4"
}
variable "frontend_cidr" {
description = "addr_front"
type = string
default = "10.0.1.0/24"
}
variable "backend_cidr" {
description = "addr_back"
type = string
default = "10.0.2.0/24"
}
variable "database_cidr" {
description = "addr_bdd"
type = string
default = "10.0.3.0/24"
}
variable "ssh_source_ranges" {
description = "addr_ssh"
type = string
default = "0.0.0.0/0"
}
variable "http_source_ranges" {
description = "addr_http"
type = string
default = "0.0.0.0/0"
}