2024-12-06 02:43:07 +01:00
|
|
|
#- project_name (string)
|
2024-12-04 16:11:44 +01:00
|
|
|
variable "project_name" {
|
2024-12-06 02:43:07 +01:00
|
|
|
description = "Nom du projet"
|
2024-12-04 16:23:06 +01:00
|
|
|
type = string
|
2024-12-06 13:56:53 +01:00
|
|
|
default = "tp-1-docker"
|
2024-12-04 16:23:06 +01:00
|
|
|
}
|
2024-12-06 02:43:07 +01:00
|
|
|
#- project_id (string)
|
2024-12-04 16:23:06 +01:00
|
|
|
variable "project_id" {
|
2024-12-04 16:11:44 +01:00
|
|
|
description = "ID du projet"
|
|
|
|
type = string
|
2024-12-06 13:56:53 +01:00
|
|
|
default = "tp-1-docker"
|
2024-12-04 16:11:44 +01:00
|
|
|
}
|
2024-12-06 02:43:07 +01:00
|
|
|
# - region (string)
|
2024-12-04 16:11:44 +01:00
|
|
|
variable "region" {
|
2024-12-06 02:43:07 +01:00
|
|
|
description = "Région du projet"
|
2024-12-04 16:11:44 +01:00
|
|
|
type = string
|
2024-12-04 16:53:46 +01:00
|
|
|
default = "europe-west4"
|
2024-12-04 16:11:44 +01:00
|
|
|
}
|
2024-12-06 02:43:07 +01:00
|
|
|
# - frontend_cidr (string)
|
2024-12-04 16:11:44 +01:00
|
|
|
variable "frontend_cidr" {
|
2024-12-06 02:43:07 +01:00
|
|
|
description = "cidr du frontend"
|
2024-12-04 16:11:44 +01:00
|
|
|
type = string
|
|
|
|
default = "10.0.1.0/24"
|
|
|
|
}
|
2024-12-06 02:43:07 +01:00
|
|
|
# - backend_cidr (string)
|
2024-12-04 16:11:44 +01:00
|
|
|
variable "backend_cidr" {
|
2024-12-06 02:43:07 +01:00
|
|
|
description = "cidr du backend"
|
2024-12-04 16:11:44 +01:00
|
|
|
type = string
|
|
|
|
default = "10.0.2.0/24"
|
|
|
|
}
|
2024-12-06 02:43:07 +01:00
|
|
|
# - database_cidr (string)
|
2024-12-04 16:11:44 +01:00
|
|
|
variable "database_cidr" {
|
2024-12-06 02:43:07 +01:00
|
|
|
description = "cidr du database"
|
2024-12-04 16:11:44 +01:00
|
|
|
type = string
|
|
|
|
default = "10.0.3.0/24"
|
|
|
|
}
|
2024-12-06 02:43:07 +01:00
|
|
|
# - ssh_source_ranges (string)
|
2024-12-04 16:11:44 +01:00
|
|
|
variable "ssh_source_ranges" {
|
2024-12-06 02:43:07 +01:00
|
|
|
description = "Accès à internet"
|
2024-12-04 16:11:44 +01:00
|
|
|
type = string
|
2024-12-06 02:43:07 +01:00
|
|
|
default = "0.0.0.0/0"
|
2024-12-04 16:11:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "cidr_range" {
|
|
|
|
description = "cidr de network"
|
|
|
|
type = string
|
|
|
|
default = "10.0.0.0/16"
|
|
|
|
}
|