forked from pierront/but3-iac
74 lines
1.1 KiB
Terraform
74 lines
1.1 KiB
Terraform
|
|
|
||
|
|
variable "project_id" {
|
||
|
|
description = "ID du projet"
|
||
|
|
type = string
|
||
|
|
default = "affable-framing-478713-b6"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "region" {
|
||
|
|
description = "région du projet"
|
||
|
|
type = string
|
||
|
|
default = "europe-west9"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "zone" {
|
||
|
|
description = "zone du projet"
|
||
|
|
type = string
|
||
|
|
default = "europe-west9-b"
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
variable "project_name" {
|
||
|
|
description = "nom du projet"
|
||
|
|
type = string
|
||
|
|
default = "tp-iac"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "frontend_cidr" {
|
||
|
|
description = "CIDR du front"
|
||
|
|
type = string
|
||
|
|
default = "10.0.1.0/24"
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
variable "backend_cidr" {
|
||
|
|
description = "CIDR for backend subnet"
|
||
|
|
type = string
|
||
|
|
default = "10.0.2.0/24"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "database_cidr" {
|
||
|
|
description = "CIDR for database subnet"
|
||
|
|
type = string
|
||
|
|
default = "10.0.3.0/24"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "ssh_source_ranges" {
|
||
|
|
description = "ranges ssh"
|
||
|
|
type = string
|
||
|
|
default = "0.0.0.0/0"
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
variable "instance_type" {
|
||
|
|
description = "type de machine sur les instances"
|
||
|
|
type = string
|
||
|
|
default = "e2-small"
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|