DEV5.6TP7/tp-cloud/terraform/environments/dev/variables.tf

54 lines
1.1 KiB
Terraform
Raw Normal View History

2024-12-06 16:12:47 +01:00
#- project_name (string)
2024-12-04 16:11:43 +01:00
variable "project_name" {
2024-12-06 15:17:20 +01:00
description = "Nom du projet"
2024-12-04 16:11:43 +01:00
type = string
2024-12-06 16:19:17 +01:00
default = "newtp-443913"
2024-12-04 16:11:43 +01:00
}
2024-12-06 16:12:47 +01:00
#- project_id (string)
2024-12-04 16:23:27 +01:00
variable "project_id" {
2024-12-06 15:17:20 +01:00
description = "ID du projet"
2024-12-04 16:23:27 +01:00
type = string
2024-12-06 16:19:17 +01:00
default = "newtp-443913"
2024-12-04 16:23:27 +01:00
}
2024-12-06 16:12:47 +01:00
# - region (string)
2024-12-04 16:11:43 +01:00
variable "region" {
2024-12-06 15:17:20 +01:00
description = "Région du projet"
2024-12-04 16:11:43 +01:00
type = string
2024-12-06 16:01:06 +01:00
default = "europe-west4"
2024-12-04 16:11:43 +01:00
}
2024-12-06 16:12:47 +01:00
# - frontend_cidr (string)
2024-12-04 16:11:43 +01:00
variable "frontend_cidr" {
2024-12-06 15:17:20 +01:00
description = "cidr du frontend"
2024-12-04 16:11:43 +01:00
type = string
default = "10.0.1.0/24"
}
2024-12-06 16:12:47 +01:00
# - backend_cidr (string)
2024-12-04 16:11:43 +01:00
variable "backend_cidr" {
2024-12-06 15:17:20 +01:00
description = "cidr du backend"
2024-12-04 16:11:43 +01:00
type = string
default = "10.0.2.0/24"
}
2024-12-06 16:12:47 +01:00
# - database_cidr (string)
2024-12-04 16:11:43 +01:00
variable "database_cidr" {
2024-12-06 15:17:20 +01:00
description = "cidr du database"
2024-12-04 16:11:43 +01:00
type = string
default = "10.0.3.0/24"
}
2024-12-06 16:12:47 +01:00
# - ssh_source_ranges (string)
2024-12-04 16:11:43 +01:00
variable "ssh_source_ranges" {
2024-12-06 15:17:20 +01:00
description = "Accès à internet"
2024-12-04 16:11:43 +01:00
type = string
default = "0.0.0.0/0"
}
variable "cidr_range" {
2024-12-06 15:17:20 +01:00
description = "cidr de network"
2024-12-04 16:11:43 +01:00
type = string
default = "10.0.0.0/16"
2024-12-06 15:17:20 +01:00
}