72 lines
1.4 KiB
HCL
72 lines
1.4 KiB
HCL
variable "project_name" {
|
|
description = "Project Name"
|
|
type = string
|
|
default = "projet-iut-442314"
|
|
}
|
|
|
|
variable "project_id" {
|
|
description = "Project ID"
|
|
type = string
|
|
default = "projet-iut-442314"
|
|
}
|
|
|
|
variable "region" {
|
|
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"
|
|
type = string
|
|
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"
|
|
}
|