cloud-foundation-fabric/modules/artifact-registry
Julio Castillo eecdee63e6 Make examples in READMEs runnable and testable 2020-11-07 10:28:33 +01:00
..
README.md Make examples in READMEs runnable and testable 2020-11-07 10:28:33 +01:00
main.tf rename iam variables in artifact registry 2020-11-04 16:56:57 +01:00
outputs.tf Add Artifact Registry module (#81) 2020-05-26 12:03:15 +02:00
variables.tf rename iam variables in artifact registry 2020-11-04 16:56:57 +01:00
versions.tf Add Artifact Registry module (#81) 2020-05-26 12:03:15 +02:00

README.md

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

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 Repository id string
project_id Registry project id. string
description An optional description for the repository string Terraform-managed registry
format Repository format. One of DOCKER or UNSPECIFIED string DOCKER
iam IAM bindings in {ROLE => [MEMBERS]} format. map(list(string)) {}
labels Labels to be attached to the registry. map(string) {}
location Registry location. Use `gcloud beta artifacts locations list' to get valid values string

Outputs

name description sensitive
id Repository id
name Repository name