An open API service indexing awesome lists of open source software.

https://github.com/avidhara/terraform-azurerm-acr

Terraform module for Azure Container Registry(ACR)
https://github.com/avidhara/terraform-azurerm-acr

azure azure-container-registry terraform terraform-azure terraform-azurerm terraform-module terraform-modules

Last synced: 3 months ago
JSON representation

Terraform module for Azure Container Registry(ACR)

Awesome Lists containing this project

README

        

# Terraform module for Azure ACR

## How to use it as a module

```hcl
module "acr" {
source = "./"
name = "iba6yu5bgopi"
resource_group_name = "terraform-test"
location = "East US"
sku = "Premium"
admin_enabled = true
}

```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13.1 |
| [azurerm](#requirement\_azurerm) | >= 3.0.0 |

## Providers

| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >= 3.0.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azurerm_container_registry.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/container_registry) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [admin\_enabled](#input\_admin\_enabled) | (Optional) Specifies whether the admin user is enabled. Defaults to false. | `bool` | `false` | no |
| [anonymous\_pull\_enabled](#input\_anonymous\_pull\_enabled) | (Optional) Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the Standard or Premium SKU. | `bool` | `false` | no |
| [create\_acr](#input\_create\_acr) | (Optional) Do you want to create ECR repo | `bool` | `true` | no |
| [data\_endpoint\_enabled](#input\_data\_endpoint\_enabled) | (Optional) Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the Premium SKU. | `bool` | `true` | no |
| [encryption](#input\_encryption) | (Optional) An encryption block | `any` | `[]` | no |
| [export\_policy\_enabled](#input\_export\_policy\_enabled) | (Optional) Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make sure the public\_network\_access\_enabled is also set to false. | `bool` | `true` | no |
| [georeplications](#input\_georeplications) | A list of Azure locations where the Ccontainer Registry should be geo-replicated. Only activated on Premium SKU.
Supported properties are:
location = string
zone\_redundancy\_enabled = bool
regional\_endpoint\_enabled = bool
tags = map(string)
or this can be a list of `string` (each element is a location) | `any` | `[]` | no |
| [identity](#input\_identity) | (Optional) An identity block | `any` | `[]` | no |
| [location](#input\_location) | (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [name](#input\_name) | (Required) Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [network\_rule\_bypass\_option](#input\_network\_rule\_bypass\_option) | (Optional) Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are None and AzureServices. Defaults to AzureServices. | `string` | `"AzureServices"` | no |
| [network\_rule\_set](#input\_network\_rule\_set) | A list of Azure locations where the Ccontainer Registry should be geo-replicated. Only activated on Premium SKU.
Supported properties are:
default\_action = string
ip\_rule = list(map(string))
virtual\_network = list(map(string)) | `any` | `[]` | no |
| [public\_network\_access\_enabled](#input\_public\_network\_access\_enabled) | (Optional) Whether public network access is allowed for the container registry. Defaults to true. | `bool` | `false` | no |
| [quarantine\_policy\_enabled](#input\_quarantine\_policy\_enabled) | (Optional) Boolean value that indicates whether quarantine policy is enabled. | `bool` | `false` | no |
| [resource\_group\_name](#input\_resource\_group\_name) | (Required) The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. | `string` | n/a | yes |
| [retention\_policy](#input\_retention\_policy) | (Optional) A retention\_policy block | `any` |

[
{
"days": 30,
"enabled": true
}
]
| no |
| [sku](#input\_sku) | (Optional) The SKU name of the container registry. Possible values are Basic, Standard and Premium.Defaults to Premium. | `string` | `"Premium"` | no |
| [tags](#input\_tags) | (Optional) A mapping of tags to assign to the resource. | `map(string)` | `{}` | no |
| [trust\_policy](#input\_trust\_policy) | (Optional) A trust\_policy block | `any` |
[
{
"enabled": false
}
]
| no |
| [zone\_redundancy\_enabled](#input\_zone\_redundancy\_enabled) | (Optional) Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false. | `bool` | `false` | no |

## Outputs

| Name | Description |
|------|-------------|
| [admin\_password](#output\_admin\_password) | The Password associated with the Container Registry Admin account - if the admin account is enabled. |
| [admin\_username](#output\_admin\_username) | The Username associated with the Container Registry Admin account - if the admin account is enabled. |
| [id](#output\_id) | The ID of the Container Registry. |
| [login\_server](#output\_login\_server) | The URL that can be used to log into the container registry. |