Skip to content

Commit

Permalink
Create ACR without zone redundancy where is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
zioproto committed Jan 27, 2025
1 parent b72ebb3 commit 6cb81d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ object({
name = string
private_dns_zone_resource_ids = set(string)
subnet_resource_id = string
zone_redundancy_enabled = optional(bool)
})
```

Expand Down
1 change: 1 addition & 0 deletions examples/without_availability_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module "test" {
name = module.naming.container_registry.name_unique
subnet_resource_id = module.avm_res_network_virtualnetwork.subnets["private_link_subnet"].resource_id
private_dns_zone_resource_ids = [azurerm_private_dns_zone.this.id]
zone_redundancy_enabled = false
}
managed_identities = {
user_assigned_resource_ids = [
Expand Down
1 change: 1 addition & 0 deletions examples/without_availability_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module "test" {
name = module.naming.container_registry.name_unique
subnet_resource_id = module.avm_res_network_virtualnetwork.subnets["private_link_subnet"].resource_id
private_dns_zone_resource_ids = [azurerm_private_dns_zone.this.id]
zone_redundancy_enabled = false
}
managed_identities = {
user_assigned_resource_ids = [
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module "avm_res_containerregistry_registry" {
location = var.location
resource_group_name = var.resource_group_name
sku = "Premium"
zone_redundancy_enabled = coalesce(var.acr.zone_redundancy_enabled, true)
public_network_access_enabled = false
private_endpoints = {
primary = {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ variable "acr" {
name = string
private_dns_zone_resource_ids = set(string)
subnet_resource_id = string

zone_redundancy_enabled = optional(bool)
})
default = null
description = "(Optional) Parameters for the Azure Container Registry to use with the Kubernetes Cluster."
Expand Down

0 comments on commit 6cb81d7

Please sign in to comment.