Skip to content

Commit 1a96ff2

Browse files
Public network bugfix (#27)
* Updated root\main.tf with public_network_access_enabled line Recommended change by Longtan Li from WSF team * Updated root\main.tf for public_network fix Based on updated feedback from Longtan Li on the public_netowrk_access_enabled where he is adding "var" * updated root\main.tf to to add var.db in the public_network_access_enabled line updated root\main.tf to to add var.db in the public_network_access_enabled line --------- Co-authored-by: Lucas Melo <lucas.melo@intel.com>
1 parent 631f0c5 commit 1a96ff2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ resource "azurerm_postgresql_flexible_server" "postgres" {
4141
zone = var.db_zone
4242
private_dns_zone_id = var.db_private_dns_zone_id
4343
delegated_subnet_id = var.db_private_dns_zone_id != null ? var.db_delegated_subnet_id : null
44-
public_network_access_enabled = delegated_subnet_id != null && private_dns_zone_id != null ? false : true
45-
46-
44+
public_network_access_enabled = var.db_delegated_subnet_id != null && var.db_private_dns_zone_id != null ? false : true
4745
source_server_id = var.db_create_source_id
4846
point_in_time_restore_time_in_utc = var.db_create_mode == "PointInTimeRestore" && var.db_create_source_id != null ? var.db_restore_time : null
4947

0 commit comments

Comments
 (0)