forked from pierront/but3-iac
WIP: fix compute and network terraform plan
This commit is contained in:
@@ -1,35 +1,29 @@
|
|||||||
variable "project_id" {
|
variable "project_name" {
|
||||||
description = "ID du projet GCP"
|
description = "Nom du projet utilisé pour préfixer les ressources"
|
||||||
type = string
|
type = string
|
||||||
default = "mon-projet"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "region" {
|
variable "region" {
|
||||||
description = "region de l'instance"
|
description = "Région GCP où seront créés les sous-réseaux"
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west1-b"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "frontend_cidr" {
|
variable "frontend_cidr" {
|
||||||
description = "CIDR for frontend subnet"
|
description = "CIDR du sous-réseau frontend"
|
||||||
type = string
|
type = string
|
||||||
default = "10.0.1.0/24"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "backend_cidr" {
|
variable "backend_cidr" {
|
||||||
description = "CIDR for backend subnet"
|
description = "CIDR du sous-réseau backend"
|
||||||
type = string
|
type = string
|
||||||
default = "10.0.2.0/24"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "database_cidr" {
|
variable "database_cidr" {
|
||||||
description = "CIDR for database subnet"
|
description = "CIDR du sous-réseau database"
|
||||||
type = string
|
type = string
|
||||||
default = "10.0.3.0/24"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "ssh_source_ranges" {
|
variable "ssh_source_ranges" {
|
||||||
description = "la range des sources ssh"
|
description = "Plages IP autorisées pour SSH"
|
||||||
type = string
|
type = string
|
||||||
default = "0.0.0.0/0"
|
}
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user