forked from pierront/but3-iac
network
This commit is contained in:
@@ -43,7 +43,7 @@ variable "project_id" {
|
|||||||
variable "instance_type" {
|
variable "instance_type" {
|
||||||
description = "type de l'instance"
|
description = "type de l'instance"
|
||||||
type = string
|
type = string
|
||||||
default = "e2_small"
|
default = "e2-small"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "zone" {
|
variable "zone" {
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
# 1. L'ID du VPC
|
# 1. L'ID du VPC
|
||||||
# 2. Les IDs des sous-réseaux sous forme de map
|
# 2. Les IDs des sous-réseaux sous forme de map
|
||||||
|
|
||||||
output "vpc_terraform_output" {
|
output "vpc" {
|
||||||
value = google_compute_network.vpc_terraform.id
|
value = google_compute_network.vpc_terraform.id
|
||||||
}
|
}
|
||||||
|
|
||||||
output "list_id" {
|
output "subnets" {
|
||||||
value = {
|
value = {
|
||||||
frontend = google_compute_subnetwork.subnet_frontend.id
|
frontend = google_compute_subnetwork.subnet_frontend.id
|
||||||
bakcend = google_compute_subnetwork.subnet_backend.id
|
bakcend = google_compute_subnetwork.subnet_backend.id
|
||||||
|
|||||||
Reference in New Issue
Block a user