Skip to content

compute/container_registry

Overview

This page documents the Terraform module implementation, key configuration surfaces, and how it integrates with CAF.

Dependency diagram (Mermaid)

graph TD azurecaf_name.acr["azurecaf_name.acr"] azurerm_container_registry.acr["azurerm_container_registry.acr"] module.diagnostics["module.diagnostics"] module.private_endpoint["module.private_endpoint"] azurerm_container_registry.acr --> azurecaf_name.acr module.diagnostics --> azurerm_container_registry.acr module.private_endpoint --> azurerm_container_registry.acr

Module Reference

Category: compute
Path: modules/compute/container_registry
Azure Resources: azurecaf_name, azurerm_container_registry

Inputs

Name Description Type Required Default Validation
"settings" "The settings for the Azure resource." any yes - -
"global_settings" "Global settings object (see module README.md)" any yes - -
"client_config" "Client configuration object (see module README.md)." any yes - -
"name" "(Required) Specifies the name of the Container Registry. Changing this forces a new resource to be created." string yes - -
"admin_enabled" "(Optional) Specifies whether the admin user is enabled. Defaults to false." any no false -
"sku" "(Optional) The SKU name of the container registry. Possible values are Basic, Standard and Premium. Defaults to Basic" any no "Basic" -
"tags" "(Optional) A mapping of tags to assign to the resource." map(any) no {} -
"georeplications" "(Optional) Updated structure for Azure locations where the container registry should be geo-replicated." any no {} -
"vnets" any no {} -
"network_rule_set" " (Optional) A network_rule_set block as documented https://www.terraform.io/docs/providers/azurerm/r/container_regis... any no {} -
"diagnostic_profiles" any no {} -
"diagnostics" any no {} -
"private_endpoints" any no {} -
"resource_groups" any no {} -
"private_dns" any no {} -
"public_network_access_enabled" any no "true" -
"location" "location of the resource if different from the resource group." string no - -
"resource_group_name" "Resource group object to deploy the Azure resource" string no - -
"resource_group" "Resource group object to deploy the Azure resource" any yes - -
"base_tags" "Base tags for the resource to be inherited from the resource group." bool yes - -

Outputs

Name Description Sensitive Value
"id" - azurerm_container_registry.acr.id
"name" - azurecaf_name.acr.result
"resource_group_name" "Resource group name is exported to allow the data source to retrieve the admin password if needed." - local.resource_group_name
"login_server" - azurerm_container_registry.acr.login_server
"login_server_url" - "https://${azurerm_container_registry.acr.login_server}"
"admin_username" - azurerm_container_registry.acr.admin_username

Sources

  • modules/compute/container_registry/diagnostics.tf
  • modules/compute/container_registry/locals.tf
  • modules/compute/container_registry/main.tf
  • modules/compute/container_registry/outputs.tf
  • modules/compute/container_registry/private_endpoint.tf
  • modules/compute/container_registry/registry.tf
  • modules/compute/container_registry/variables.tf