forked from telekom-mms/terraform-azurerm-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
22 lines (22 loc) · 758 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
output "dns_zone" {
description = "azurerm_dns_zone results"
value = {
for dns_zone in keys(azurerm_dns_zone.dns_zone) :
dns_zone => {
id = azurerm_dns_zone.dns_zone[dns_zone].id
name = azurerm_dns_zone.dns_zone[dns_zone].name
resource_group_name = azurerm_dns_zone.dns_zone[dns_zone].resource_group_name
}
}
}
output "dns_a_record" {
description = "azurerm_dns_a_record results"
value = {
for dns_a_record in keys(azurerm_dns_a_record.dns_a_record) :
dns_a_record => {
id = azurerm_dns_a_record.dns_a_record[dns_a_record].id
name = azurerm_dns_a_record.dns_a_record[dns_a_record].name
fqdn = azurerm_dns_a_record.dns_a_record[dns_a_record].fqdn
}
}
}