modif de DEV

This commit is contained in:
2025-12-04 09:44:34 +01:00
parent d1c013fa5e
commit 0cb2915625
3 changed files with 24 additions and 22 deletions

View File

@@ -10,12 +10,8 @@ terraform {
provider "google" {
project = var.projet_name
region = var.region
zone = var.zone
}
# -------------------------
# MODULE NETWORK
# -------------------------
module "network" {
source = "../../modules/network"
@@ -23,14 +19,11 @@ module "network" {
region = var.region
}
# -------------------------
# MODULE COMPUTE
# -------------------------
module "compute" {
source = "../../modules/compute"
projet_name = var.projet_name
zone = var.zone
projet_name = var.projet_name
zone = "europe-west9-a"
instance_type = var.instance_type
os_login = var.os_login

View File

@@ -8,12 +8,17 @@ variable "region" {
default = "europe-west9"
}
variable "zone" {
type = string
default = "europe-west9-b"
}
variable "ssh_source_ranges" {
type = list(string)
default = ["0.0.0.0/0"]
}
variable "instance_type" {
type = string
default = "e2-small"
}
variable "os_login" {
type = bool
default = true
}

View File

@@ -1,11 +1,15 @@
output "frontend_subnet_id" {
value = google_compute_subnetwork.frontend.id
}
output "backend_subnet_id" {
value = google_compute_subnetwork.backend.id
}
output "database_subnet_id" {
value = google_compute_subnetwork.database.id
}
output "vpc_id" {
value = google_compute_network.vpc.id
}
output "subnet_ids" {
value = {
frontend = google_compute_subnetwork.frontend.id
backend = google_compute_subnetwork.backend.id
database = google_compute_subnetwork.database.id
}
}