Skip to content

Commit

Permalink
Update gcp-postgresql.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi authored Jul 26, 2023
1 parent f48a63a commit 146f54b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ resource "google_sql_user" "postgresql_service_account" {
name = "${var.database_service_account_name}@${var.octopus_gcp_project}.iam" # Service account created in shared workers for GCP
instance = google_sql_database_instance.postgresql.name
type = "CLOUD_IAM_SERVICE_ACCOUNT"

depends_on = [
google_sql_database_instance.postgresql
]
}

resource "google_compute_firewall" "allow-postgresql" {
Expand All @@ -38,4 +42,4 @@ resource "google_compute_firewall" "allow-postgresql" {

source_service_accounts = [ "${var.database_service_account_name}@${var.octopus_gcp_project}.iam.gserviceaccount.com" ]

}
}

0 comments on commit 146f54b

Please sign in to comment.