forked from pierront/but3-iac
en cours
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user