13 lines
403 B
HCL
13 lines
403 B
HCL
module "fw-ips" {
|
|
source = "git::https://gitlab.com/qmi/qmi-cloud-tf-modules.git//databases/firewall_ips"
|
|
}
|
|
|
|
resource "azurerm_postgresql_flexible_server_firewall_rule" "fw_rule" {
|
|
for_each = module.fw-ips.ips_az_qcs
|
|
|
|
name = each.key
|
|
server_id = azurerm_postgresql_flexible_server.postgresql-server.id
|
|
start_ip_address = each.value.0
|
|
end_ip_address = each.value.1
|
|
|
|
} |