-
Notifications
You must be signed in to change notification settings - Fork 0
/
syn_private_link_hub.tf
33 lines (27 loc) · 1.26 KB
/
syn_private_link_hub.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
32
33
resource "azurerm_synapse_private_link_hub" "syn_hub" {
name = "${var.prefix}plh${random_string.postfix.result}"
resource_group_name = azurerm_resource_group.syn_rg.name
location = azurerm_resource_group.syn_rg.location
}
# DNS Zones
resource "azurerm_private_dns_zone" "syn_zone_web" {
name = "privatelink.azuresynapse.net"
resource_group_name = azurerm_resource_group.syn_rg.name
}
# Private Endpoint configuration
resource "azurerm_private_endpoint" "syn_hub_pe_web" {
name = "${var.prefix}-hub-pe-web-${random_string.postfix.result}"
location = azurerm_resource_group.syn_rg.location
resource_group_name = azurerm_resource_group.syn_rg.name
subnet_id = azurerm_subnet.default_subnet.id
private_service_connection {
name = "${var.prefix}-hub-psc-web-${random_string.postfix.result}"
private_connection_resource_id = azurerm_synapse_private_link_hub.syn_hub.id
subresource_names = ["web"]
is_manual_connection = false
}
private_dns_zone_group {
name = "private-dns-zone-group-syn-web"
private_dns_zone_ids = [azurerm_private_dns_zone.syn_zone_web.id]
}
}