A Terraform module for creating
Azure Container Registry Service
resources.
To use this module you need the following resources:
This module creates Azure Container Registry Service
resources.
Most basic usage creating a Azure Container Registry Service
resource.
module "container" {
source = "."
environment = "development"
container_name = "containerSample"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
container_sku = "Basic"
container_admin_enabled = true
public_network_access_enabled = false
tags = {
environment = "Demo"
}
}
See variables.tf
in addition of all arguments above the following attributes are exported by the module:
container_registry_id
: The create container registry id returned byAzure Container Registry Service
container_registry_id
attributecontainer_registry_name
: The created container registry name returned byAzure Container Registry Service
container_registry_id
attributecontainer_registry_login_server
: The url to connect with the created container registry service returned byAzure Container Registry Service
container_registry_login_server
attributecontainer_registry_fqdn
: The FQDN of the created container registry service returned byAzure Container Registry Service
container_registry_fqdn
attributecontainer_registry_admin_username
: The Username associated with the Container Registry Admin account - if the admin account is enabled, returned byAzure Container Registry Service
container_registry_admin_username
attributecontainer_registry_admin_password
: The Password associated with the Container Registry Admin account - if the admin account is enabled, returned byAzure Container Registry Service
container_registry_admin_password
attribute
You have the samples in samples folder