This commit is contained in:
Jean-Luc NELET 2024-12-04 16:23:06 +01:00
parent 733f57e5b7
commit 6fb32e15f6
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,7 @@ terraform {
} }
provider "google" { provider "google" {
project = var.project_id project = var.name
region = var.region region = var.region
} }
@ -23,6 +23,6 @@ module "network" {
cidr_range = var.cidr_range cidr_range = var.cidr_range
frontend_cidr = var.frontend_cidr frontend_cidr = var.frontend_cidr
backend_cidr = var.backend_cidr backend_cidr = var.backend_cidr
database_cidr = var.database database_cidr = var.database_cidr
ssh_source_ranges = var.ssh_source_ranges ssh_source_ranges = var.ssh_source_ranges
} }

View File

@ -1,4 +1,10 @@
variable "project_name" { variable "project_name" {
description = "nom du projet"
type = string
default = "tp-1-docker"
}
variable "project_id" {
description = "ID du projet" description = "ID du projet"
type = string type = string
default = "tp-1-docker" default = "tp-1-docker"