Skip to content

Commit

Permalink
Add PSC connection
Browse files Browse the repository at this point in the history
  • Loading branch information
wawrzek committed Oct 14, 2024
1 parent 2a37a09 commit 758f350
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions postgres/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ resource "google_sql_database_instance" "this" {
dynamic "ip_configuration" {
for_each = var.private-network ? [1] : []
content {
ipv4_enabled = false
private_network = var.network-link
enable_private_path_for_google_cloud_services = true
ipv4_enabled = false
psc_config {
psc_enabled = true
allowed_consumer_projects = [var.project]
}
}
}
}
Expand Down

0 comments on commit 758f350

Please sign in to comment.