Google CloudLive-testedattested

Artifact Registry Repositories

Docker/Maven/npm repos with cleanup policies, remote and virtual repositories, CMEK and reader/writer IAM.

terraformGoogle Cloudgcp

Compare Container Registry across clouds →

Part of: GCP Kubernetes Platform

gcp-artifact-registryvizier v1.2.0

Verification

Live-tested

Really deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan clean (Checkov)
  • Plan tests (mocked: validation rules · outputs)

Provenance

Functional

  • Live-tested - applied, verified, destroyed

Last verified 2026-06-30 · how we verify

Verify this download

cosign · sha-256

Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.

# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub

# 2. This module's Sigstore bundle
curl -o gcp-artifact-registry-1.0.0.sigstore.json \
  https://www.iac-bazaar.com/api/artifacts/gcp-artifact-registry/signature

# 3. Verify the tarball you downloaded
cosign verify-blob \
  --key cosign.pub \
  --bundle gcp-artifact-registry-1.0.0.sigstore.json \
  gcp-artifact-registry-1.0.0.tar.gz
# → Verified OK

# 4. (optional) confirm the checksum too
echo "408dd4b3ac14a908b4f4f35b4c1b4e9e2629ececea501ea3f8f70222372312ab  gcp-artifact-registry-1.0.0.tar.gz" | sha256sum -c

Use it from the registry

terraform · opentofu
module "artifact_registry" {
  source  = "www.iac-bazaar.com/iac-bazaar/gcp-artifact-registry/gcp"
  version = "1.0.0"
}

Needs a registry token from /account/tokens. The module itself is free; the account is what identifies you. Full setup: registry docs.

Cite it in your README

badge · attribution

Paste this beside the module in the repository that uses it. The badge is rendered from this artifact's verification record, so it reads live-tested because the record says so, and the link lands on this page.

README.md, GitLab, Gitea
[![IaC Bazaar: live-tested](https://www.iac-bazaar.com/api/artifacts/gcp-artifact-registry/badge)](https://www.iac-bazaar.com/catalog/gcp-artifact-registry?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)

Terraform module 1.0.0, live-tested on IaC Bazaar: [Artifact Registry Repositories](https://www.iac-bazaar.com/catalog/gcp-artifact-registry?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)

```hcl
module "artifact_registry" {
  source  = "www.iac-bazaar.com/iac-bazaar/gcp-artifact-registry/gcp"
  version = "1.0.0"
}
```

Preview:IaC Bazaar: live-tested

Inputs & outputs

Create a free account to read this module's contract

The declared contract - every input name, type, default and description, plus every output - is shown to signed-in accounts, not to anonymous visitors.

A free account sees the contract of every module in the catalogue. There is no subscription and nothing to buy - the modules are free to download, and they run under Vizier.

Documentation

gcp-artifact-registry

Docker/Maven/npm repos with cleanup policies, remote and virtual repositories, CMEK and reader/writer IAM. Works with Terraform and OpenTofu (>= 1.6), Google provider >= 7.0, < 8.0.

Secure defaults:

  • Docker tags immutable by default — a pushed tag can never silently change image (supply-chain hygiene)
  • Public members (allUsers, allAuthenticatedUsers) rejected at plan time
  • Additive per-repo IAM members (roles/artifactregistry.reader / .writer) — composes safely with IAM managed elsewhere
  • Cleanup policies validated plan-time (DELETE/KEEP, exactly one of condition / most_recent_versions per policy); cleanup_policy_dry_run available for safe rollout
  • Optional CMEK per repository

Requirements

  • Terraform or OpenTofu >= 1.6
  • hashicorp/google >= 7.0, < 8.0

Notes for integrators:

  • Virtual upstreams may reference sibling repositories in this module by key (resolved to a full resource path), or any external repo by full path. Terraform creates repos in parallel and the key reference carries no dependency edge — if a first apply races, re-apply or add module-level depends_on in your wrapper.
  • CMEK: grant the Artifact Registry service agent (service-PROJECT_NUMBER@gcp-sa-artifactregistry.iam.gserviceaccount.com) roles/cloudkms.cryptoKeyEncrypterDecrypter on the key before enabling.
  • Cleanup older_than/newer_than take second-suffixed durations (e.g. "2592000s" = 30 days).
  • Migrating from GCR? A DOCKER repo + repository_urls output gives you the *-docker.pkg.dev path to retag against.

License

Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).

Usage code & full reference need an account

The complete copy-paste usage, the full input/output reference, and operational notes are free with an account - shown here and bundled in the download. Sign in and this section fills in.

  • Usage
  • Inputs
  • Outputs

Related modules

Static validatedLive test pending

ibm-container-registry

An IBM Cloud Container Registry namespace in the provider's region, with a retention policy that keeps the last ten images per repository and drops untagged ones, because without one every CI run adds an image until the account's storage quota refuses the next push. Quotas and the plan are account-wide and not managed here.

View module
Static validatedLive test pending

do-container-registry

Docker credentials for the registry never expire unless told to, so the login a CI job wrote to disk two years ago still pushes today; there is one registry per account; and the tier is a storage ceiling that turns into a failed push far from the cause. The registry, read-only credentials that live a day and read-write ones that live an hour, both re-issued on the next apply after expiry.

View module
Static validatedLive test pending

scaleway-container-registry

is_public makes every image in the namespace pullable by anyone, and the key CI pushes with is usually a person's API key with every permission that person has and no expiry. Private unless public is accepted by name, and on request an IAM application whose only permission is registry access in one project, with an API key that expires on the date you set.

View module
Static validatedLive test pending

ovh-container-registry

A registry's endpoint is public and every address may try a login until an IP restriction exists; the registry user is the credential and its password lands in state; and the plan is the storage ceiling. Allowed ranges expected with none accepted by name, one user created for the pipeline with its password as a sensitive output, and the plan looked up by name.

View module
Static validatedLive test pending

vultr-container-registry

A Vultr container registry that is private (public, which lets anyone pull every image, is accepted by name), on the plan you chose (start_up is free and small; the paid plans bill monthly from creation), in the region your clusters are in. The root user Vultr creates is not output; a robot user per cluster is the credential to hand out.

View module
Static validatedLive test pending

alicloud-container-registry

Namespaces, repositories, VPC access and an internet allowlist on an Alibaba Cloud Container Registry Enterprise Edition instance. Repositories are private and their tags immutable unless set otherwise, auto-create is off, and the internet endpoint is only switched on - by the resource existing - when you give it CIDRs. Image cleanup is deliberately not managed.

View module