This commit is contained in:
vaisse
2025-12-04 10:47:42 +00:00
parent 89d8a79231
commit 95179680bc
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
resource "google_compute_instance" "frontend"{
name = "ma-frontend"
boot_disk{
initialize_params {
image = "debian-11"
size = 10
}
}
network_interface {
access_config {}
subnetwork = google_compute_subnetwork.frontend.id
}
tags = ["frontend", "ssh"]
metadata = {
enable-oslogin = "TRUE"
}
}

View File

@@ -0,0 +1,24 @@
variable "instance_type" {
description = "je ne sais pas"
type = string
}
variable "zone" {
description = "je ne sais pas"
type = string
}
variable "frontend_subnet_id" {
description = "id du sous-réseau frontend"
type = string
}
variable "backend_subnet_id" {
description = "id du sous-réseau backend"
type = string
}
variable "database_subnet_id"{
description = "id du sous-réseau database"
type = string
}