generated from Azure/terraform-verified-module
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodules.appservice.acr.tf
28 lines (25 loc) · 1.43 KB
/
modules.appservice.acr.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
module "mod_container_registry" {
source = "azurenoops/overlays-container-registry/azurerm"
version = "~> 2.0"
count = var.create_app_container_registry ? 1 : 0
existing_resource_group_name = local.resource_group_name
location = local.location
environment = var.environment
deploy_environment = var.deploy_environment
org_name = var.org_name
workload_name = var.workload_name
sku = var.acr_sku
# Creating Private Endpoint requires, VNet name to create a Private Endpoint
# By default this will create a `privatelink.vaultcore.azure.net` DNS zone. if created in commercial cloud
# To use existing subnet, specify `existing_private_subnet_name` with valid subnet name.
# To use existing private DNS zone specify `existing_private_dns_zone` with valid zone name.
enable_private_endpoint = var.enable_acr_private_endpoint
virtual_network_name = data.azurerm_virtual_network.pe_vnet.name
existing_private_dns_zone = var.existing_acr_private_dns_zone
existing_private_subnet_name = data.azurerm_subnet.pe_subnet.name
public_network_access_enabled = false
# This is to enable resource locks for the key vault.
enable_resource_locks = var.enable_resource_locks
}