Open anasmohana opened 2 years ago
Having the same issue and I think I see the problem. In the nested subnet
module at /modules/networking/private_links/endpoints/subnet/keyvaults.tf
the code doesn't drill down into the LZ.
resource_group_name = try(var.resource_groups[each.value.resource_group_key].name, var.vnet_resource_group_name)
The storage_account.tf
file goes into the actual LZ but there are several other files that also don't. Looks like the fix is to reference the LZ key before the RG key.
I'm going to take a stab at this as my first contribution.
The same goes for Recovery Sevices Valuts, it seems only Storage Accounts PE created within the desired resource group.
Can't deploy private endpoint for Keyvault en the desired resource group even if we add lz_key and resource_group_key it's working fine in the storage account private endpoint. here is the code:
private_endpoints = { pe_caf = { vnet_key = "devops_region1" subnet_keys = ["private_endpoints"]
} } looks like the key vault pe takes the default RG (vnet RG) all the time and we can't override that.