forked from pierront/but3-iac
correction error
This commit is contained in:
@@ -43,14 +43,14 @@ variable "project_id" {
|
|||||||
|
|
||||||
|
|
||||||
variable "instance_type" {
|
variable "instance_type" {
|
||||||
description = "Nom du projet cidr"
|
description = ""
|
||||||
type = string
|
type = string
|
||||||
default = ""
|
default = "e2-micro"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
variable "zone" {
|
variable "zone" {
|
||||||
description = "Nom du projet cidr"
|
description = "zone du projet"
|
||||||
type = string
|
type = string
|
||||||
default = "value"
|
default = "europe-west9-b"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
resource "google_compute_instance" "vm_frontend" {
|
resource "google_compute_instance" "vm_frontend" {
|
||||||
name = "frontend"
|
name = "frontend"
|
||||||
machine_type = "e2-medium"
|
machine_type = var.instance_type
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
|
|
||||||
boot_disk {
|
boot_disk {
|
||||||
@@ -53,7 +53,7 @@ resource "google_compute_instance" "vm_frontend" {
|
|||||||
|
|
||||||
resource "google_compute_instance" "vm_backend" {
|
resource "google_compute_instance" "vm_backend" {
|
||||||
name = "ma-vm"
|
name = "ma-vm"
|
||||||
machine_type = "e2-medium"
|
machine_type = var.instance_type
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
|
|
||||||
boot_disk {
|
boot_disk {
|
||||||
@@ -78,7 +78,7 @@ resource "google_compute_instance" "vm_backend" {
|
|||||||
|
|
||||||
resource "google_compute_instance" "vm_database" {
|
resource "google_compute_instance" "vm_database" {
|
||||||
name = "ma-vm"
|
name = "ma-vm"
|
||||||
machine_type = "e2-medium"
|
machine_type = var.instance_type
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
|
|
||||||
boot_disk {
|
boot_disk {
|
||||||
|
|||||||
Reference in New Issue
Block a user