Skip to content

Commit

Permalink
fix:change in count condition (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupalgw authored Feb 28, 2024
1 parent b26abbc commit 0d8c3b6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
output "dns_zone_id" {
value = azurerm_dns_zone.dns_zone[0].id
value = try(azurerm_dns_zone.dns_zone[0].id, null)
description = "The DNS Zone ID."
}

output "dns_zone_number_of_record_sets" {
value = azurerm_dns_zone.dns_zone[0].number_of_record_sets
value = try(azurerm_dns_zone.dns_zone[0].number_of_record_sets, null)
description = "The number of records already in the zone."
}

output "dns_zone_name_servers" {
value = azurerm_dns_zone.dns_zone[0].name_servers
value = try(azurerm_dns_zone.dns_zone[0].name_servers, null)
description = " A list of values that make up the NS record for the zone."
}

output "dns_zone_max_number_of_record_sets" {
value = azurerm_dns_zone.dns_zone[0].max_number_of_record_sets
value = try(azurerm_dns_zone.dns_zone[0].max_number_of_record_sets, null)
description = " Maximum number of Records in the zone. Defaults to 1000."
}

output "private_dns_zone_id" {
value = var.enabled && var.private_dns ? azurerm_private_dns_zone.private_dns_zone[0].id : null
value = try(var.enabled && var.private_dns, azurerm_private_dns_zone.private_dns_zone[0].id, null)
description = "The Private DNS Zone ID."
}

output "private_dns_zone_number_of_record_sets" {
value = var.enabled && var.private_dns ? azurerm_private_dns_zone.private_dns_zone[0].number_of_record_sets : null
value = try(var.enabled && var.private_dns, azurerm_private_dns_zone.private_dns_zone[0].number_of_record_sets, null)
description = "The current number of record sets in this Private DNS zone."
}

output "private_dns_zone_max_number_of_record_sets" {
value = var.enabled && var.private_dns ? azurerm_private_dns_zone.private_dns_zone[0].max_number_of_record_sets : null
value = try(var.enabled && var.private_dns, azurerm_private_dns_zone.private_dns_zone[0].max_number_of_record_sets, null)
description = "The maximum number of record sets that can be created in this Private DNS zone."
}

output "private_dns_zone_max_number_of_virtual_network_links" {
value = var.enabled && var.private_dns ? azurerm_private_dns_zone.private_dns_zone[0].max_number_of_virtual_network_links : null
value = try(var.enabled && var.private_dns, azurerm_private_dns_zone.private_dns_zone[0].max_number_of_virtual_network_links, null)
description = "The maximum number of virtual networks that can be linked to this Private DNS zone."
}

output "private_dns_zone_max_number_of_virtual_network_links_with_registration" {
value = var.enabled && var.private_dns ? azurerm_private_dns_zone.private_dns_zone[0].max_number_of_virtual_network_links_with_registration : null
value = try(azurerm_private_dns_zone.private_dns_zone[0].max_number_of_virtual_network_links_with_registration, null)
description = "The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled."
}

output "private_dns_zone_virtual_network_link_id" {
value = var.enabled && var.private_dns ? azurerm_private_dns_zone_virtual_network_link.private_dns_vnet_link[0].id : null
value = try(azurerm_private_dns_zone_virtual_network_link.private_dns_vnet_link[0].id, null)
description = "The ID of the Private DNS Zone Virtual Network Link."
}

output "dns_a_record_id" {
value = values(azurerm_dns_a_record.records_a)[*].id
value = try(values(azurerm_dns_a_record.records_a)[*].id, null)
description = " The DNS A Record ID."
}

output "dns_cname_record_id" {
value = values(azurerm_dns_cname_record.records_cname)[*].id
value = try(values(azurerm_dns_cname_record.records_cname)[*].id, null)
description = " The DNS CNAME Record ID."
}

output "dns_ns_record_id" {
value = values(azurerm_dns_ns_record.records_ns)[*].id
value = try(values(azurerm_dns_ns_record.records_ns)[*].id, null)
description = " The DNS NS Record ID."
}

output "dns_a_record_fqdn" {
value = values(azurerm_dns_a_record.records_a)[*].fqdn
value = try(values(azurerm_dns_a_record.records_a)[*].fqdn, null)
description = "The FQDN of the DNS A Record."
}

output "dns_cname_record_fqdn" {
value = values(azurerm_dns_cname_record.records_cname)[*].fqdn
value = try(values(azurerm_dns_cname_record.records_cname)[*].fqdn, null)
description = "The FQDN of the DNS CNAME Record."
}

output "dns_ns_record_fqdn" {
value = values(azurerm_dns_ns_record.records_ns)[*].fqdn
value = try(values(azurerm_dns_ns_record.records_ns)[*].fqdn, null)
description = "The FQDN of the DNS NS Record."
}

0 comments on commit 0d8c3b6

Please sign in to comment.