diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index dcd525c..f2d688a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,7 +9,10 @@ "--network=host" ], - "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], + "mounts": [ + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", + "source=${localEnv:HOME}${localEnv:USERPROFILE},target=/host-home-folder,type=bind,consistency=cached" + ], "customizations": { "vscode": { "settings": { diff --git a/README.md b/README.md index b2172bd..6f859f0 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ No modules. | [outbound\_network\_access\_restricted](#input\_outbound\_network\_access\_restricted) | Whether outbound network access is restricted for the Cognitive Account. Defaults to `false`. | `bool` | `false` | no | | [pe\_subresource](#input\_pe\_subresource) | A list of subresource names which the Private Endpoint is able to connect to. `subresource_names` corresponds to `group_id`. Possible values are detailed in the product [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#private-link-resource) in the `Subresources` column. Changing this forces a new resource to be created. | `list(string)` |
[| no | | [private\_dns\_zone](#input\_private\_dns\_zone) | A map of object that represents the existing Private DNS Zone you'd like to use. Leave this variable as default would create a new Private DNS Zone.
"account"
]
object({| `null` | no | -| [private\_endpoint](#input\_private\_endpoint) | A map of objects that represent the configuration for a private endpoint."
name = string
resource_group_name = optional(string)
})
map(object({| `{}` | no | +| [private\_endpoint](#input\_private\_endpoint) | A map of objects that represent the configuration for a private endpoint."
name = string
vnet_rg_name = string
vnet_name = string
subnet_name = string
dns_zone_virtual_network_link_name = optional(string, "dns_zone_link")
private_dns_entry_enabled = optional(bool, false)
private_service_connection_name = optional(string, "privateserviceconnection")
is_manual_connection = optional(bool, false)
}))
map(object({| `{}` | no | | [public\_network\_access\_enabled](#input\_public\_network\_access\_enabled) | Whether public network access is allowed for the Cognitive Account. Defaults to `false`. | `bool` | `false` | no | | [resource\_group\_name](#input\_resource\_group\_name) | Name of the azure resource group to use. The resource group must exist. | `string` | n/a | yes | | [sku\_name](#input\_sku\_name) | Specifies the SKU Name for this Cognitive Service Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`. Default to `S0`. | `string` | `"S0"` | no | diff --git a/private_endpoint.tf b/private_endpoint.tf index 4b5fba4..d63d2bd 100644 --- a/private_endpoint.tf +++ b/private_endpoint.tf @@ -6,7 +6,7 @@ locals { resource "azurerm_private_endpoint" "this" { for_each = var.private_endpoint - location = data.azurerm_resource_group.pe_vnet_rg[each.key].location + location = each.value.location != null ? each.value.location : data.azurerm_resource_group.pe_vnet_rg[each.key].location name = each.value.name resource_group_name = data.azurerm_resource_group.pe_vnet_rg[each.key].name subnet_id = data.azurerm_subnet.pe_subnet[each.key].id @@ -79,4 +79,4 @@ resource "azurerm_private_dns_zone_virtual_network_link" "dns_zone_link" { } /*
name = string
vnet_rg_name = string
vnet_name = string
subnet_name = string
location = optional(string, null)
dns_zone_virtual_network_link_name = optional(string, "dns_zone_link")
private_dns_entry_enabled = optional(bool, false)
private_service_connection_name = optional(string, "privateserviceconnection")
is_manual_connection = optional(bool, false)
}))