2024-12-06 17:24:57 +01:00
|
|
|
variable "project_name" {
|
|
|
|
description = "Google Cloud Project Name"
|
|
|
|
type = string
|
|
|
|
default = "automatisation-tp1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "project_id" {
|
|
|
|
description = "Google Cloud Project Name"
|
2024-12-04 17:23:22 +01:00
|
|
|
type = string
|
|
|
|
default = "automatisation-tp1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
2024-12-06 17:24:57 +01:00
|
|
|
description = "Project Region"
|
|
|
|
type = string
|
|
|
|
default = "europe-west1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "frontend_cidr" {
|
|
|
|
description = "Frontend subnet CIDR"
|
|
|
|
type = string
|
|
|
|
default = "10.0.1.0/24"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "backend_cidr" {
|
|
|
|
description = "Backend subnet CIDR"
|
|
|
|
type = string
|
|
|
|
default = "10.0.2.0/24"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "database_cidr" {
|
|
|
|
description = "Database subnet CIDR"
|
2024-12-04 17:23:22 +01:00
|
|
|
type = string
|
2024-12-06 17:24:57 +01:00
|
|
|
default = "10.0.3.0/24"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ssh_source_ranges" {
|
|
|
|
description = "SSH allowed ip ranges"
|
|
|
|
type = string
|
|
|
|
default = "0.0.0.0/0"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
description = "GCP Instance type"
|
|
|
|
type = string
|
|
|
|
default = "e2-small"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "zone" {
|
|
|
|
description = "GCP zone"
|
|
|
|
type = string
|
|
|
|
default = "europe-west1-b"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "frontend_subnet_id" {
|
|
|
|
description = "Frontend subnet ID"
|
|
|
|
type = string
|
|
|
|
default = "frontend"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "backend_subnet_id" {
|
|
|
|
description = "Backend subnet ID"
|
|
|
|
type = string
|
|
|
|
default = "backend"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "database_subnet_id" {
|
|
|
|
description = "Database subnet ID"
|
|
|
|
type = string
|
|
|
|
default = "database"
|
2024-12-04 17:23:22 +01:00
|
|
|
}
|
|
|
|
|