test network
This commit is contained in:
parent
cacf079fb9
commit
2d36ce6482
@ -24,8 +24,8 @@ resource "google_compute_subnetwork" "database" {
|
|||||||
region = var.region
|
region = var.region
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_firewall" "allow_http-https" {
|
resource "google_compute_firewall" "allowHttpHttps" {
|
||||||
name = "allow_http-https"
|
name = "allowHttpHttps"
|
||||||
network = google_compute_network.vpc.id
|
network = google_compute_network.vpc.id
|
||||||
|
|
||||||
allow {
|
allow {
|
||||||
@ -37,8 +37,8 @@ resource "google_compute_firewall" "allow_http-https" {
|
|||||||
target_tags = ["web"]
|
target_tags = ["web"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_firewall" "allow_ssh" {
|
resource "google_compute_firewall" "allowSsh" {
|
||||||
name = "allow-ssh"
|
name = "allowSsh"
|
||||||
network = google_compute_network.vpc.id
|
network = google_compute_network.vpc.id
|
||||||
|
|
||||||
allow {
|
allow {
|
||||||
@ -50,8 +50,8 @@ resource "google_compute_firewall" "allow_ssh" {
|
|||||||
target_tags = ["ssh"]
|
target_tags = ["ssh"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_firewall" "front-to-back" {
|
resource "google_compute_firewall" "frontToBack" {
|
||||||
name = "front-to-back"
|
name = "frontToBack"
|
||||||
network = google_compute_network.vpc.id
|
network = google_compute_network.vpc.id
|
||||||
|
|
||||||
allow {
|
allow {
|
||||||
@ -63,8 +63,8 @@ resource "google_compute_firewall" "front-to-back" {
|
|||||||
target_tags = ["backend"]
|
target_tags = ["backend"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_firewall" "back-to-db" {
|
resource "google_compute_firewall" "backToDb" {
|
||||||
name = "back-to-db"
|
name = "backToDb"
|
||||||
network = google_compute_network.vpc.id
|
network = google_compute_network.vpc.id
|
||||||
|
|
||||||
allow {
|
allow {
|
||||||
|
Loading…
Reference in New Issue
Block a user