Files
but3-iac/terraform/environments/dev/variables.tf

53 lines
1.3 KiB
Terraform
Raw Normal View History

2025-12-04 09:33:27 +01:00
variable "project_id" {
type = string
description = "GCP project id"
default = "school-478713"
}
variable "region" {
type = string
description = "The region of the VM"
default = "europe-west1"
}
variable "zone" {
type = string
description = "The zone of the VM"
default = "europe-west1-b"
}
variable "frontend_subnet_id" {
type = string
description = "self_link du subnet frontend"
2025-12-04 09:44:41 +01:00
default = "projects/school-478713/regions/europe-west1/subnetworks/frontend-subnet"
2025-12-04 09:33:27 +01:00
}
variable "backend_subnet_id" {
type = string
description = "self_link du subnet backend"
2025-12-04 09:44:41 +01:00
default = "projects/school-478713/regions/europe-west1/subnetworks/backend-subnet"
2025-12-04 09:33:27 +01:00
}
variable "database_subnet_id" {
type = string
description = "self_link du subnet database"
2025-12-04 09:44:41 +01:00
default = "projects/school-478713/regions/europe-west1/subnetworks/database-subnet"
2025-12-04 09:33:27 +01:00
}
variable "network" {
type = string
description = "VPC network self_link or name"
2025-12-04 09:44:41 +01:00
default = "projects/school-478713/global/networks/school-478713-vpc"
2025-12-04 09:33:27 +01:00
}
variable "ssh_pub_key" {
type = string
description = "SSH public key to provision (optional)"
default = "ssh-ed25519 AAAA... user@example.com"
}
variable "instance_type" {
type = string
description = "Type of the VM instance"
default = "e2-minimal"
}