-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1940 from sschne/kusto-cluster-private-endpoint
Kusto cluster private endpoint
- Loading branch information
Showing
7 changed files
with
103 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
examples/data_explorer/107-private-endpoint/configuration.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "eastus" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
rg1 = { | ||
name = "dedicated-test" | ||
region = "region1" | ||
} | ||
} | ||
kusto_clusters = { | ||
kc1 = { | ||
name = "kustocluster" | ||
auto_stop_enabled = false | ||
resource_group = { | ||
key = "rg1" | ||
#lz_key = "" | ||
#name = "" | ||
} | ||
region = "region1" | ||
|
||
sku = { | ||
name = "Dev(No SLA)_Standard_E2a_v4" | ||
capacity = 1 | ||
} | ||
|
||
private_endpoints = { | ||
pe1 = { | ||
name = "kusto-shared" | ||
resource_group_key = "rg1" | ||
vnet_key = "vnet_region1" | ||
subnet_key = "private_endpoints" | ||
private_service_connection = { | ||
name = "kusto-shared" | ||
is_manual_connection = false | ||
subresource_names = ["cluster"] | ||
} | ||
private_dns = { | ||
keys = ["kusto"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
## Networking configuration | ||
vnets = { | ||
vnet_region1 = { | ||
resource_group_key = "rg1" | ||
region = "region1" | ||
|
||
vnet = { | ||
name = "kusto" | ||
address_space = ["10.10.0.0/24"] | ||
} | ||
|
||
subnets = { | ||
private_endpoints = { | ||
name = "private-endpoint" | ||
cidr = ["10.10.0.0/25"] | ||
enforce_private_link_endpoint_network_policies = true | ||
} | ||
} | ||
} | ||
} | ||
|
||
private_dns = { | ||
kusto = { | ||
name = "privatelink.westeurope.kusto.windows.net" | ||
resource_group_key = "rg1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
modules/databases/data_explorer/kusto_clusters/private_endpoint.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module "private_endpoint" { | ||
source = "../../../networking/private_endpoint" | ||
for_each = try(var.private_endpoints, {}) | ||
|
||
resource_id = azurerm_kusto_cluster.kusto.id | ||
name = each.value.name | ||
location = var.location | ||
resource_group_name = var.resource_group_name | ||
subnet_id = can(each.value.subnet_id) ? each.value.subnet_id : var.combined_resources.vnets[try(each.value.lz_key, var.client_config.landingzone_key)][each.value.vnet_key].subnets[each.value.subnet_key].id | ||
settings = each.value | ||
global_settings = var.global_settings | ||
base_tags = var.global_settings.inherit_tags | ||
tags = local.tags | ||
private_dns = var.combined_resources.private_dns | ||
client_config = var.client_config | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters