Skip to content

Commit 07c2bbb

Browse files
committed
updating outputs for private endpoint
1 parent a28c068 commit 07c2bbb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

output.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,23 @@ output "Key_vault_references" {
2525
v.name => format("@Microsoft.KeyVault(SecretUri=%s)", v.id)
2626
}
2727
}
28+
29+
output "key_vault_private_endpoint" {
30+
description = "The ID of the Key Vault Private Endpoint"
31+
value = var.enable_private_endpoint ? element(concat(azurerm_private_endpoint.pep1.*.id, [""]), 0) : null
32+
}
33+
34+
output "key_vault_private_dns_zone_domain" {
35+
description = "DNS zone name for Key Vault Private endpoints dns name records"
36+
value = var.existing_private_dns_zone == null && var.enable_private_endpoint ? element(concat(azurerm_private_dns_zone.dnszone1.*.name, [""]), 0) : var.existing_private_dns_zone
37+
}
38+
39+
output "key_vault_private_endpoint_ip_addresses" {
40+
description = "Key Vault private endpoint IPv4 Addresses"
41+
value = var.enable_private_endpoint ? flatten(azurerm_private_endpoint.pep1.0.custom_dns_configs.*.ip_addresses) : null
42+
}
43+
44+
output "key_vault_private_endpoint_fqdn" {
45+
description = "Key Vault private endpoint FQDN Addresses"
46+
value = var.enable_private_endpoint ? flatten(azurerm_private_endpoint.pep1.0.custom_dns_configs.*.fqdn) : null
47+
}

0 commit comments

Comments
 (0)