Skip to content

Commit 45f1b2f

Browse files
updated files
1 parent 0ee9c5c commit 45f1b2f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module "postgresql_server" {
7575
administrator_password = var.administrator_password
7676

7777
delegated_subnet_id = var.delegated_subnet_id
78-
private_dns_zone_id = var.private_dns_zone_ids[0]
78+
private_dns_zone_id = var.private_dns_zone_id
7979
public_network_access_enabled = var.public_network_access_enabled
8080

8181
high_availability = var.high_availability
@@ -132,7 +132,7 @@ module "private_endpoint" {
132132
region = var.location
133133
subnet_id = var.subnet_id
134134
private_dns_zone_group_name = var.private_dns_zone_group_name
135-
private_dns_zone_id = var.private_dns_zone_ids[0]
135+
private_dns_zone_ids = var.private_dns_zone_ids[0]
136136
is_manual_connection = var.is_manual_connection
137137
private_connection_resource_id = module.postgresql_server.id
138138
subresource_names = var.subresource_names

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ variable "private_dns_zone_ids" {
168168
default = []
169169
}
170170

171+
variable "private_dns_zone_id" {
172+
description = "The ID of the private DNS zone. Required when `delegated_subnet_id` is set"
173+
type = string
174+
default = null
175+
}
176+
171177
variable "is_manual_connection" {
172178
description = <<EOT
173179
Does the Private Endpoint require Manual Approval from the remote resource owner? Changing this forces a new resource

0 commit comments

Comments
 (0)