2024-12-06 16:39:48 +01:00
|
|
|
#nom de projet
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "project_name" {
|
|
|
|
description = "Nom du projet"
|
|
|
|
type = string
|
|
|
|
default = "automatisation-tp"
|
|
|
|
}
|
2024-12-06 16:39:48 +01:00
|
|
|
# id de projet
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "project_id" {
|
|
|
|
description = "ID du projet"
|
|
|
|
type = string
|
|
|
|
default = "automatisation-tp"
|
|
|
|
}
|
2024-12-06 16:39:48 +01:00
|
|
|
# la region
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "region" {
|
|
|
|
description = "Région du projet"
|
|
|
|
type = string
|
|
|
|
default = "us-central1"
|
|
|
|
}
|
2024-12-06 16:39:48 +01:00
|
|
|
# frontend
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "frontend_cidr" {
|
|
|
|
description = "cidr du frontend"
|
|
|
|
type = string
|
|
|
|
default = "10.0.1.0/24"
|
|
|
|
}
|
2024-12-06 16:39:48 +01:00
|
|
|
# backend
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "backend_cidr" {
|
|
|
|
description = "cidr du backend"
|
|
|
|
type = string
|
|
|
|
default = "10.0.2.0/24"
|
|
|
|
}
|
2024-12-06 16:39:48 +01:00
|
|
|
# database
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "database_cidr" {
|
|
|
|
description = "cidr du database"
|
|
|
|
type = string
|
|
|
|
default = "10.0.3.0/24"
|
|
|
|
}
|
2024-12-06 16:39:48 +01:00
|
|
|
# source ssh
|
2024-12-06 16:15:47 +01:00
|
|
|
variable "ssh_source_ranges" {
|
|
|
|
description = "Accès à internet"
|
|
|
|
type = string
|
|
|
|
default = "0.0.0.0/0"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cidr_range" {
|
|
|
|
description = "cidr de network"
|
|
|
|
type = string
|
|
|
|
default = "10.0.0.0/16"
|
|
|
|
}
|