-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
synapseprivatelinkhub.tf
31 lines (29 loc) · 1.32 KB
/
synapseprivatelinkhub.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
resource "azurerm_synapse_private_link_hub" "synapse_pl_hub" {
name = replace("${local.prefix}-synplh001", "-", "")
location = var.location
resource_group_name = azurerm_resource_group.consumption_rg.name
tags = var.tags
}
resource "azurerm_private_endpoint" "synapse_pl_hub_private_endpoint" {
name = "${azurerm_synapse_private_link_hub.synapse_pl_hub.name}-pe"
location = var.location
resource_group_name = azurerm_synapse_private_link_hub.synapse_pl_hub.resource_group_name
tags = var.tags
custom_network_interface_name = "${azurerm_synapse_private_link_hub.synapse_pl_hub.name}-nic"
private_service_connection {
name = "${azurerm_synapse_private_link_hub.synapse_pl_hub.name}-pe"
is_manual_connection = false
private_connection_resource_id = azurerm_synapse_private_link_hub.synapse_pl_hub.id
subresource_names = ["web"]
}
subnet_id = azapi_resource.private_endpoint_subnet.id
dynamic "private_dns_zone_group" {
for_each = var.private_dns_zone_id_synapse_portal == "" ? [] : [1]
content {
name = "${azurerm_synapse_private_link_hub.synapse_pl_hub.name}-arecord"
private_dns_zone_ids = [
var.private_dns_zone_id_synapse_portal
]
}
}
}