forked from pierront/but3-iac
feat: compute module
This commit is contained in:
@@ -62,7 +62,7 @@ resource "google_compute_firewall" "allow_frontend_to_backend" {
|
||||
ports = ["8000"]
|
||||
}
|
||||
|
||||
source_ranges = [var.frontend_cidr]
|
||||
source_tags = ["frontend"]
|
||||
target_tags = ["backend"]
|
||||
}
|
||||
|
||||
@@ -75,6 +75,6 @@ resource "google_compute_firewall" "allow_backend_to_database" {
|
||||
ports = ["3306"]
|
||||
}
|
||||
|
||||
source_ranges = [var.backend_cidr]
|
||||
source_tags = ["backend"]
|
||||
target_tags = ["database"]
|
||||
}
|
||||
@@ -6,8 +6,8 @@ output "vpc_id" {
|
||||
output "subnet_ids" {
|
||||
description = "IDs des sous-réseaux frontend, backend, database"
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.frontend.id
|
||||
backend = google_compute_subnetwork.backend.id
|
||||
database = google_compute_subnetwork.database.id
|
||||
"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