container-registry

avinor/container-registry/azurerm

Terraform Module HCL AZURERM

Terraform module to create a docker container registry in Azure

Install
module "container-registry" {
source = "avinor/container-registry/azurerm"
version = "4.1.2"
}
plain text: /constructs/tfmod-avinor-container-registry-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure Container Registry This module is just a thin wrapper around the azurerm_container_registry resource to enforce naming standards and security policies (no admin user enabled). It can also assign roles for pulling and pushing images. Requirements - Minimum Contributor access to create registry - Owner required when using roles variable Usage Example of a simple deployment ``terraform module "simple" { source = "avinor/container-registry/azurerm" version = "1.1.0" name = "acr" resource_group_name = "simpleacr-rg" location = "westeurope" roles = [ { object_id = "0000-0000-0000" role = "AcrPull" }, ] } ` Diagnostics Diagnostics settings can be sent to either storage account, event hub or Log Analytics workspace. The variable diagnostics.destination is the id of receiver, ie. storage acco

Inputs (9)
NameTypeDescriptionDefault
namestringName of the resource required
resource_group_namestringName of resource group to deploy resources in. required
locationstringAzure location where to place resources required
skustringThe SKU name of the container registry"Standard"
content_trustboolSet to true to enable Docker Content Trust on registry.false
georeplicationslist(object({ location A list of Azure locations where the container registry should be geo-replicated.null
diagnosticsobject({ destination = sDiagnostic settings for those resources that support it. See README.md for detainull
tagsmap(string)Tags to apply to all resources created.{}
roleslist(object({ object_id = List of roles that should be assigned to Azure AD object_ids.[]
Outputs (2)
id — The Container Registry ID
login_server — The URL that can be used to log into the container registry.
Resources (4)
azurerm_container_registryazurerm_monitor_diagnostic_settingazurerm_resource_groupazurerm_role_assignment
Details
FrameworkTerraform Module
LanguageHCL
Version4.1.2
Cloud AZURERM
★ Stars8
Forks14
Total downloads5.9k
Inputs9
Outputs2
Resources4
Examples4
LicenseApache-2.0
Namespaceavinor
Updated