Skip to content

Commit

Permalink
Naming firewall rules
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Jun 9, 2022
1 parent 2e96286 commit 1c31243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "google_sql_user" "mysql_service_account" {
}

resource "google_compute_firewall" "allow-mysql" {
name = "fw-allow-mysql"
name = "fw-allow-mysql-${google_sql_database_instance.mysql.name}"
network = "default"
allow {
protocol = "tcp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "google_sql_user" "postgresql_service_account" {
}

resource "google_compute_firewall" "allow-postgresql" {
name = "fw-allow-postgresql"
name = "fw-allow-postgresql-${google_sql_database_instance.postgresql.name}"
network = "default"
allow {
protocol = "tcp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "google_sql_database_instance" "mssql" {
}

resource "google_compute_firewall" "allow-mssql" {
name = "fw-allow-mssql"
name = "fw-allow-mssql-${google_sql_database_instance.mssql.name}"
network = "default"
allow {
protocol = "tcp"
Expand Down

0 comments on commit 1c31243

Please sign in to comment.