diff --git a/modules/azure/private_endpoint/main.tf b/modules/azure/private_endpoint/main.tf index 63d8b2e1..597da763 100644 --- a/modules/azure/private_endpoint/main.tf +++ b/modules/azure/private_endpoint/main.tf @@ -25,7 +25,7 @@ resource "azurerm_private_endpoint" "private_endpoint" { name = var.private_connection_name private_connection_resource_id = var.private_connection_resource_id subresource_names = var.private_connection_subresource_names - is_manual_connection = false + is_manual_connection = var.is_manual_connection } private_dns_zone_group { diff --git a/modules/azure/private_endpoint/variables.tf b/modules/azure/private_endpoint/variables.tf index c8829879..c27209ea 100644 --- a/modules/azure/private_endpoint/variables.tf +++ b/modules/azure/private_endpoint/variables.tf @@ -23,6 +23,11 @@ variable "private_connection_subresource_names" { description = "The subresource names of the resource where the connection should be made to." } +variable "is_manual_connection" { + type = bool + description = "Specifies whether the connection must be approved manually" +} + variable "subnet_id" { type = string description = "The Id of the subnet"