Skip to content

Instantly share code, notes, and snippets.

@rollendxavier
Created April 24, 2022 14:17
Show Gist options
  • Save rollendxavier/626242e2b2e133303d186f590454f4f3 to your computer and use it in GitHub Desktop.
Save rollendxavier/626242e2b2e133303d186f590454f4f3 to your computer and use it in GitHub Desktop.
Manages an Azure Container Registry
resource "azurerm_resource_group" "container_rg" {
name = "container-${var.environment}-rg"
location = var.location
}
resource "azurerm_container_registry" "acr" {
name = "container${var.environment}acr"
resource_group_name = azurerm_resource_group.container_rg.name
location = var.location
sku = "Premium"
admin_enabled = false
identity {
type = "SystemAssigned"
}
georeplications {
location = "Australia Southeast"
zone_redundancy_enabled = true
tags = {}
}
georeplications {
location = "Australia Central"
zone_redundancy_enabled = true
tags = {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment