This commit is contained in:
aissi
2025-12-03 16:46:11 +01:00
parent f6daa09e66
commit 0a47519f21
3 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# À vous de définir les variables pour :
# - instance_type
# - zone
# - frontend_subnet_id
# - backend_subnet_id
# - database_subnet_id
variable "instance_type" {
type = string
}
variable "zone" {
type = string
}
variable "frontend_subnet_id" {
type = number
}
variable "backend_subnet_id" {
type = number
}
variable "database_subnet_id" {
type = number
}

View File

@@ -1,6 +1,6 @@
# VPC # VPC
resource "google_compute_network" "vpc" { resource "google_compute_network" "vpc" {
name = "mon-vpc" name = "vpc"
auto_create_subnetworks = false auto_create_subnetworks = false
} }

View File

@@ -27,3 +27,4 @@ variable "ssh_source_ranges" {
description = "Plages IP autorisées pour SSH" description = "Plages IP autorisées pour SSH"
type = string type = string
} }