This commit is contained in:
gastonchenet
2025-12-04 09:33:27 +01:00
parent be0ad3ca53
commit cff1cab940
12 changed files with 276 additions and 128 deletions

View File

@@ -0,0 +1,53 @@
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"
default = "projects/my-gcp-project/regions/europe-west1/subnetworks/frontend-subnet"
}
variable "backend_subnet_id" {
type = string
description = "self_link du subnet backend"
default = "projects/my-gcp-project/regions/europe-west1/subnetworks/backend-subnet"
}
variable "database_subnet_id" {
type = string
description = "self_link du subnet database"
default = "projects/my-gcp-project/regions/europe-west1/subnetworks/database-subnet"
}
variable "network" {
type = string
description = "VPC network self_link or name"
default = "projects/my-gcp-project/global/networks/my-vpc"
}
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"
}