Thanks for your interest in Cloud Adoption Framework for Azure landing zones on Terraform. This module is now deprecated and no longer maintained.
As part of Cloud Adoption Framework landing zones for Terraform, we have migrated to a single module model, which you can find here: https://github.com/aztfmod/terraform-azurerm-caf and on the Terraform registry: https://registry.terraform.io/modules/aztfmod/caf/azurerm
In Terraform 0.13 you can now call directly submodules easily with the following syntax:
module "caf_container_registry" {
source = "aztfmod/caf/azurerm//modules/compute/container_registry"
version = "0.4.18"
# insert the 7 required variables here
}
Creates an Azure Container Registry in a given region
Reference the module to a specific version (recommended):
module "acr" {
source = "aztfmod/caf-container-registry/azurerm"
version = "0.x.y"
resource_group_name = var.resource_group_name
name = var.name
location = var.location
tags = var.tags
diagnostics_map = var.diagsmap
la_workspace_id = var.laworkspace.id
}
Name | Type | Default | Description |
---|---|---|---|
name | string | None | (Required) Specifies the name of the Container Registry. Changing this forces a new resource to be created. |
resource_group_name | string | None | (Required) The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. |
location | string | None | (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. |
tags | map | None | (Required) Map of tags for the deployment. |
la_workspace_id | string | None | (Required) Log Analytics Repository ID. |
diagnostics_map | map | None | (Required) Map with the diagnostics repository information. |
diagnostics_settings | object | None | (Required) Map with the diagnostics settings for ASR deployment. See the required structure in the following example or in the diagnostics module documentation. |
admin_enabled | bool | False | (Optional) Specifies whether the admin user is enabled. |
sku | string | Basic | (Optional) The SKU name of the the container registry. Possible values are Basic, Standard and Premium. Default = Basic. |
georeplication_locations | list | null | (Optional) A list of Azure locations where the container registry should be geo-replicated (only valid if SKU is premium) |
convention | string | None | (Required) Naming convention to be used (check at the naming convention module for possible values). |
prefix | string | None | (Optional) Prefix to be used. |
postfix | string | None | (Optional) Postfix to be used. |
max_length | string | None | (Optional) maximum length to the name of the resource. |
Name | Type | Description |
---|---|---|
object | object | Returns the full object of the created Azure Container Registry. |
name | string | Returns the name of the created Azure Container Registry. |
id | string | Returns the ID of the created Azure Container Registry. |