1
0
forked from pierront/but3-iac

presque fini (je pense)

This commit is contained in:
2025-12-04 10:46:51 +01:00
parent 5746077039
commit 249504829a
8 changed files with 64 additions and 51 deletions

View File

@@ -25,11 +25,11 @@ resource "google_compute_subnetwork" "database_network" {
}
resource "google_compute_firewall" "ssh_firewall" {
name = "${var.project_name}-ssh"
network = google_compute_network.vpc.name
direction = "INGRESS"
priority = 1000
target_tags = ["ssh"]
name = "${var.project_name}-ssh"
network = google_compute_network.vpc.name
direction = "INGRESS"
priority = 1000
target_tags = ["ssh"]
source_ranges = [var.ssh_source_ranges]
allow {
@@ -39,11 +39,11 @@ resource "google_compute_firewall" "ssh_firewall" {
}
resource "google_compute_firewall" "frontend_firewall" {
name = "${var.project_name}-frontend-http-https"
network = google_compute_network.vpc.name
direction = "INGRESS"
priority = 1000
target_tags = ["frontend"]
name = "${var.project_name}-frontend-http-https"
network = google_compute_network.vpc.name
direction = "INGRESS"
priority = 1000
target_tags = ["frontend"]
source_ranges = ["0.0.0.0/0"]
allow {