2024-12-04 17:09:31 +01:00
|
|
|
resource "google_compute_instance" "tp07-frontend" {
|
|
|
|
name = "tp07-frontend"
|
|
|
|
machine_type = "e2-small"
|
|
|
|
zone = var.region
|
|
|
|
|
|
|
|
boot_disk {
|
|
|
|
initialize_params {
|
|
|
|
image = "debian-cloud/debian-11"
|
|
|
|
size = 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
network_interface {
|
|
|
|
subnetwork = var.tp07-frontend
|
|
|
|
access_config {} # IP publique
|
|
|
|
}
|
|
|
|
|
|
|
|
tags = ["frontend", "ssh"]
|
|
|
|
|
|
|
|
metadata = {
|
|
|
|
enable-oslogin = "TRUE"
|
|
|
|
}
|
|
|
|
}
|