cloud-foundation-fabric/modules/artifact-registry
Albert Lloveras 97d6e48bde Re-order variables 2023-06-20 17:30:23 +10:00
..
README.md Re-order variables 2023-06-20 17:30:23 +10:00
main.tf feat(artifact-registry): Add support for CMEK 2023-06-20 17:27:15 +10:00
outputs.tf Ensure all modules have an `id` output (#1410) 2023-06-02 16:07:22 +02:00
variables.tf Re-order variables 2023-06-20 17:30:23 +10:00
versions.tf Added module for Secure Web Proxy. 2023-06-13 08:49:58 +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     = "./fabric/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"
encryption_key The KMS key name to use for encryption at rest. string null
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 null

Outputs

name description sensitive
id Fully qualified repository id.
name Repository name.