resource "azurerm_private_endpoint" "endpoint" {
for_each = { for v in var.private_endpoints : v.name => v }
name = each.value.name
location = each.value.location
resource_group_name = each.value.rg_name
subnet_id = each.value.subnet_id
custom_network_interface_name = each.value.custom_network_interface_name
tags = each.value.tags
dynamic "private_service_connection" {
for_each = each.value.private_service_connection != null ? [each.value.private_service_connection] : []
content {
name = private_service_connection.value.name
is_manual_connection = private_service_connection.value.is_manual_connection
private_connection_resource_id = private_service_connection.value.private_connection_resource_id
private_connection_resource_alias = private_service_connection.value.private_connection_resource_alias
subresource_names = private_service_connection.value.subresource_names
request_message = private_service_connection.value.is_manual_connection == true ? private_service_connection.value.request_message : null
}
}
dynamic "private_dns_zone_group" {
for_each = each.value.private_dns_zone_group != null ? [each.value.private_dns_zone_group] : []
content {
name = private_dns_zone_group.value.name
private_dns_zone_ids = private_dns_zone_group.value.private_dns_zone_ids
}
}
dynamic "ip_configuration" {
for_each = each.value.ip_configuration != null ? [each.value.ip_configuration] : []
content {
name = ip_configuration.value.name
private_ip_address = ip_configuration.value.private_ip_address
subresource_name = ip_configuration.value.subresource_name
member_name = ip_configuration.value.member_name
}
}
}
No requirements.
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Type |
---|---|
azurerm_private_endpoint.endpoint | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
private_endpoints | n/a | list(object({ |
[] |
no |
sub_resource_names | The sub resource names of private endpoints found at https://learn.microsoft.com/en-gb/azure/private-link/private-endpoint-overview#private-link-resource, not used, but provided for lookup option | map(string) |
{ |
no |
Name | Description |
---|---|
custom_dns_configs | The custom DNS configurations of the private endpoints. |
endpoint_ids | The IDs of the Private Endpoints. |
ip_configurations | A map of IP configurations for each private endpoint, keyed by the private endpoint name. |
network_interfaces | The network interfaces associated with the private endpoints. |
private_dns_zone_configs | n/a |
private_service_connections | The private service connections of the private endpoints. |
record_sets | n/a |