forked from pierront/but3-iac
encore encore encore
This commit is contained in:
@@ -48,7 +48,7 @@ resource "google_compute_firewall" "allow-http" {
|
||||
|
||||
# - SSH vers toutes les instances
|
||||
resource "google_compute_firewall" "SSH" {
|
||||
name = "google_compute_firewall"
|
||||
name = "SSH"
|
||||
network = google_compute_network.vpc.id
|
||||
|
||||
allow {
|
||||
@@ -61,7 +61,7 @@ resource "google_compute_firewall" "SSH" {
|
||||
|
||||
# - Port 8000 de frontend vers backend
|
||||
resource "google_compute_firewall" "front-back" {
|
||||
name = "google_compute_firewall"
|
||||
name = "front-back"
|
||||
network = google_compute_network.vpc.id
|
||||
|
||||
allow {
|
||||
@@ -75,7 +75,7 @@ resource "google_compute_firewall" "front-back" {
|
||||
|
||||
# - Port 3306 de backend vers database
|
||||
resource "google_compute_firewall" "back-base" {
|
||||
name = "google_compute_firewall"
|
||||
name = "back-base"
|
||||
network = google_compute_network.vpc.id
|
||||
|
||||
allow {
|
||||
|
||||
@@ -1,17 +1,11 @@
|
||||
output "vpc_terraform" {
|
||||
description = "ID du VPC créé"
|
||||
value = google_compute_instance.vpc.id
|
||||
|
||||
output "vpc_terraform_output" {
|
||||
value = google_compute_network.vpc_terraform.id
|
||||
}
|
||||
|
||||
|
||||
output "subnet_ids" {
|
||||
description = "Map des IDs des sous-réseaux"
|
||||
output "list_id" {
|
||||
value = {
|
||||
|
||||
frontend = google_compute_subnetwork.frontend.id
|
||||
backend = google_compute_subnetwork.backend.id
|
||||
database = google_compute_subnetwork.database.id
|
||||
frontend = google_compute_subnetwork.subnet_frontend.id
|
||||
backend = google_compute_subnetwork.subnet_backend.id
|
||||
database = google_compute_subnetwork.subnet_database.id
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user