Skip to content

Commit 28cd6ea

Browse files
updated files
1 parent b63ed71 commit 28cd6ea

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module "postgresql_server" {
5858
administrator_password = var.administrator_password
5959

6060
delegated_subnet_id = var.delegated_subnet_id
61-
private_dns_zone_id = var.private_dns_zone_ids[0]
61+
private_dns_zone_id = var.private_dns_zone_ids
6262
public_network_access_enabled = var.public_network_access_enabled
6363

6464
high_availability = var.high_availability
@@ -121,8 +121,7 @@ module "private_endpoint" {
121121
subresource_names = var.subresource_names
122122
request_message = var.request_message
123123
tags = local.private_endpoint_tags
124-
private_service_connection_name = local.private_service_connection_name
125-
# private_service_connection_name = module.resource_names["private_service_connection"].standard
124+
private_service_connection_name = module.resource_names["private_service_connection"].standard
126125
# resource_name = module.resource_names["private_endpoint"].standard
127126

128127
# Do NOT set private_connection_resource_alias at all

variables.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ variable "private_dns_zone_group_name" {
164164

165165
variable "private_dns_zone_ids" {
166166
description = "A list of Private DNS Zone IDs to link with the Private Endpoint."
167-
type = list(string)
168-
default = []
167+
type = string
169168
}
170169

171170
variable "is_manual_connection" {

0 commit comments

Comments
 (0)