File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ resource "azurerm_postgresql_flexible_server" "main" {
111111 }
112112 }
113113 depends_on = [azurerm_private_dns_zone_virtual_network_link . main , azurerm_private_dns_zone_virtual_network_link . main2 ]
114+
115+ lifecycle {
116+ ignore_changes = [high_availability [0 ]. standby_availability_zone ]
117+ }
114118}
115119
116120# #-----------------------------------------------------------------------------
@@ -203,10 +207,11 @@ resource "azurerm_postgresql_flexible_server_database" "main" {
203207}
204208
205209resource "azurerm_postgresql_flexible_server_configuration" "main" {
206- for_each = var. enabled ? var. server_configurations : {}
207- name = each. key
208- server_id = azurerm_postgresql_flexible_server. main [0 ]. id
209- value = each. value
210+ for_each = var. enabled ? var. server_configurations : {}
211+ name = each. key
212+ server_id = azurerm_postgresql_flexible_server. main [0 ]. id
213+ value = each. value
214+ depends_on = [azurerm_postgresql_flexible_server . main ]
210215}
211216# #------------------------------------------------------------------------
212217# # Private DNS for a PostgreSQL Server. - Default is "false"
You can’t perform that action at this time.
0 commit comments