dns record in scenario

This commit is contained in:
Manuel Romero
2020-05-18 11:23:31 +02:00
parent 9e21bd005a
commit f266fa0061

View File

@@ -62,17 +62,6 @@ resource "azurerm_public_ip" "appgw-ip" {
allocation_method = "Static"
}
resource "azurerm_dns_a_record" "example" {
# To enable or disable this resource
count = var.is_enabled ? 1 : 0
name = var.appgw_hostname
zone_name = "qmi.qlik-poc.com"
resource_group_name = "qmi-infra-dns"
ttl = 300
records = [azurerm_public_ip.appgw-ip[count.index].ip_address]
}
resource "azurerm_application_gateway" "qmi-app-gw" {
# To enable or disable this resource
count = var.is_enabled ? 1 : 0