forked from pierront/but3-iac
53 lines
1.4 KiB
HCL
53 lines
1.4 KiB
HCL
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/${var.project_id}/regions/${var.region}/subnetworks/frontend-subnet"
|
|
}
|
|
|
|
variable "backend_subnet_id" {
|
|
type = string
|
|
description = "self_link du subnet backend"
|
|
default = "projects/${var.project_id}/regions/${var.region}/subnetworks/backend-subnet"
|
|
}
|
|
|
|
variable "database_subnet_id" {
|
|
type = string
|
|
description = "self_link du subnet database"
|
|
default = "projects/${var.project_id}/regions/${var.region}/subnetworks/database-subnet"
|
|
}
|
|
|
|
variable "network" {
|
|
type = string
|
|
description = "VPC network self_link or name"
|
|
default = "projects/${var.project_id}/global/networks/${var.project_name}-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"
|
|
} |