Skip to content

Think-Cube/terraform-azure-container-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
terraform >= 1.6.3
azurerm 4.46.0

Providers

Name Version
azurerm 4.46.0

Modules

No modules.

Resources

Name Type
azurerm_container_registry.main resource
azurerm_client_config.current data source
azurerm_resource_group.main data source

Inputs

Name Description Type Default Required
acr_admin_enabled Specifies whether the admin user is enabled for the Container Registry. bool false no
acr_name The name of the Container Registry. Changing this forces a new resource to be created. string n/a yes
acr_tier The SKU name of the Container Registry. Possible values are Basic, Standard, and Premium. string "Basic" no
anonymous_pull_enabled Whether anonymous pull access is enabled for the Container Registry (Premium SKU only). bool false no
data_endpoint_enabled Whether data endpoint is enabled for the Container Registry (Premium SKU only). bool false no
default_tags A map of default tags to assign to all resources. map(string) n/a yes
encryption Encryption configuration for the Container Registry (Premium SKU only).
object({
key_vault_key_id = string
identity_client_id = string
})
null no
environment The name of the environment to deploy resources into, such as 'dev', 'test', or 'prod'. string n/a yes
export_policy_enabled Whether export policy is enabled for the Container Registry. bool true no
georeplications A list of georeplication configurations for the Container Registry (Premium SKU only).
list(object({
location = string
zone_redundancy_enabled = bool
regional_endpoint_enabled = bool
tags = map(string)
}))
[] no
identity Identity configuration for the Container Registry.
object({
type = string
identity_ids = list(string)
})
null no
network_rule_bypass_option Specifies whether Azure Services can bypass network rules. Possible values are 'AzureServices' or 'None'. string "AzureServices" no
network_rule_set Network rules for the Container Registry (Premium SKU only).
object({
default_action = string
ip_rules = list(string)
})
null no
public_network_access_enabled Whether public network access is allowed for the Container Registry. bool true no
quarantine_policy_enabled Whether quarantine policy is enabled for the Container Registry. bool false no
resource_group_location The Azure region where the resource group is located. string n/a yes
resource_group_name The name of the resource group in which the Container Registry will be created. string n/a yes
retention_policy Number of days to retain untagged manifests in the Container Registry (Premium SKU only). Set to null to disable. number null no
trust_policy Trust policy for the Container Registry (Premium SKU only).
object({
enabled = bool
})
null no
zone_redundancy_enabled Whether zone redundancy is enabled for the Container Registry (Premium SKU only). bool false no

Outputs

Name Description
admin_password The Password associated with the Container Registry Admin account - if the admin account is enabled.
admin_username The Username associated with the Container Registry Admin account - if the admin account is enabled.
data_endpoint_host_names A set of data endpoint hostnames associated with the Container Registry - if data endpoints are enabled.
id The ID of the Container Registry.
identity The identity details of the Container Registry, including principal_id and tenant_id, if a managed identity is configured.
login_server The URL that can be used to log into the Container Registry.