# Google Cloud Artifact Registry Module
This module simplifies the creation of repositories using Google Cloud Artifact Registry.
Note: Artifact Registry is still in beta, hence this module currently uses the beta provider.
## Example
```hcl
module "docker_artifact_registry" {
source = "./modules/artifact-registry"
project_id = "myproject"
location = "europe-west1"
format = "DOCKER"
id = "myregistry"
iam = {
"roles/artifactregistry.admin" = ["group:cicd@example.com"]
}
}
# tftest modules=1 resources=2
```
## Variables
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
| [id](variables.tf#L35) | Repository id. | string
| ✓ | |
| [project_id](variables.tf#L52) | Registry project id. | string
| ✓ | |
| [description](variables.tf#L17) | An optional description for the repository. | string
| | "Terraform-managed registry"
|
| [format](variables.tf#L23) | Repository format. One of DOCKER or UNSPECIFIED. | string
| | "DOCKER"
|
| [iam](variables.tf#L29) | IAM bindings in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
| [labels](variables.tf#L40) | Labels to be attached to the registry. | map(string)
| | {}
|
| [location](variables.tf#L46) | Registry location. Use `gcloud beta artifacts locations list' to get valid values. | string
| | null
|
## Outputs
| name | description | sensitive |
|---|---|:---:|
| [id](outputs.tf#L17) | Repository id. | |
| [name](outputs.tf#L22) | Repository name. | |