Skip to content

Commit

Permalink
chore: add private dns zone group
Browse files Browse the repository at this point in the history
  • Loading branch information
larwaa committed Jul 14, 2023
1 parent 6394bf8 commit f85c72d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion infrastructure/modules/redis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ resource "azurerm_subnet" "this" {
}

resource "azurerm_private_endpoint" "this" {
name = "redis-pe-${var.suffix}"
name = "endpoint-${var.suffix}"
resource_group_name = var.resource_group.name
location = var.resource_group.location
subnet_id = azurerm_subnet.this.id

private_dns_zone_group {
name = "redis-${var.suffix}-zg"
private_dns_zone_ids = [azurerm_private_dns_zone.this.id]
}


private_service_connection {
name = "redis-${var.suffix}-private-link"
private_connection_resource_id = azurerm_redis_cache.this.id
Expand Down

0 comments on commit f85c72d

Please sign in to comment.