forked from pierront/but3-iac
network
This commit is contained in:
54
terraform/environments/dev/variables.tf
Normal file
54
terraform/environments/dev/variables.tf
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
variable "project_name" {
|
||||
description = "Project ID GCP"
|
||||
type = string
|
||||
default = "western-diorama-374821"
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
description = "Region GCP"
|
||||
type = string
|
||||
default = "us-central1"
|
||||
}
|
||||
|
||||
variable "zone" {
|
||||
description = "Zone GCP"
|
||||
type = string
|
||||
default = "us-central1"
|
||||
}
|
||||
|
||||
variable "frontend_cidr" {
|
||||
description = "CIDR du subnet frontend"
|
||||
type = string
|
||||
default = "10.0.1.0/24"
|
||||
}
|
||||
|
||||
variable "backend_cidr" {
|
||||
description = "CIDR du subnet backend"
|
||||
type = string
|
||||
default = "10.0.2.0/24"
|
||||
}
|
||||
|
||||
variable "database_cidr" {
|
||||
description = "CIDR du subnet database"
|
||||
type = string
|
||||
default = "10.0.3.0/24"
|
||||
}
|
||||
|
||||
variable "ssh_source_ranges" {
|
||||
description = "Plages IP autorisées pour SSH"
|
||||
type = string
|
||||
default = "35.239.249.161/32"
|
||||
}
|
||||
|
||||
variable "instance_type" {
|
||||
description = "Type de machine pour les instances"
|
||||
type = string
|
||||
default = "e2-small"
|
||||
}
|
||||
|
||||
variable "project_id" {
|
||||
description = "ID du projet pour IAM (souvent le même que project_name)"
|
||||
type = string
|
||||
default = "western-diorama-374821"
|
||||
}
|
||||
Reference in New Issue
Block a user