forked from pierront/but3-iac
compute
This commit is contained in:
@@ -40,4 +40,16 @@ variable "project_id" {
|
||||
description = "ID du projet"
|
||||
type = string
|
||||
default = "projet1-478713"
|
||||
}
|
||||
}
|
||||
|
||||
variable "instance_type" {
|
||||
description = "Type d'instance pour les VM"
|
||||
type = string
|
||||
default = "e2-small"
|
||||
}
|
||||
|
||||
variable "zone" {
|
||||
description = "Zone GCP"
|
||||
type = string
|
||||
default = "europe-west2-a"
|
||||
}
|
||||
|
||||
@@ -8,4 +8,16 @@ output "list_id" {
|
||||
backend = google_compute_subnetwork.subnet_backend.id
|
||||
database = google_compute_subnetwork.subnet_database.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "vpc_id" {
|
||||
value = google_compute_network.vpc.id
|
||||
}
|
||||
|
||||
output "subnets" {
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.frontend.id
|
||||
backend = google_compute_subnetwork.backend.id
|
||||
database = google_compute_subnetwork.database.id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user