update dev&compute

This commit is contained in:
2024-12-04 17:14:08 +01:00
parent 41da5c5607
commit 07fccbcd19
4 changed files with 47 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
resource "google_compute_instance" "tp07-frontend" {
name = "tp07-frontend"
machine_type = "e2-small"
machine_type = var.instance_type
zone = var.region
boot_disk {

View File

@@ -13,7 +13,12 @@ variable "tp07-database"{
type = string
}
variable "region"{
variable "zone"{
description = "region du projet"
type = string
}
variable "instance_type"{
description = "type d'instance"
type = string
}