Google Artifact Registry

The Google Artifact Registry provides a single location for storing and managing your packages and Docker container images.

This module creates a Google Artifact Registry of docker images with these possibilities :

  • Enable or disable mutability.

  • Add some rights for a list of users

This module must be used with these constraints:

  • Use the same availability zone to all the repositories.

  • Give the image name and the tag of all the images

Requirements

Name

Version

terraform

>= 1.0

google

>= 4.51.0

google-beta

>= 4.51.0

null

>= 3.2.1

Providers

Name

Version

google

>= 4.51.0

google-beta

>= 4.51.0

null

>= 3.2.1

Modules

No modules.

Resources

Name

Type

google-beta_google_project_service_identity.kms

resource

google_artifact_registry_repository.docker

resource

google_artifact_registry_repository_iam_member.artifact_registry_roles

resource

google_kms_crypto_key_iam_member.kms

resource

null_resource.copy_images

resource

google_client_config.current

data source

google_project.project

data source

Inputs

Name

Description

Type

Default

Required

description

Description of the registry

string

""

no

docker_images

Docker container images to push inside the registry

map(list(object({
image = string
tag = string
})))

n/a

yes

iam_roles

Assign role on the repository for a list of users

map(set(string))

{}

no

immutable_tags

If the registry is a docker format then tags can be immutable (true or false)

bool

true

no

kms_key_id

KMS key name to encrypt GCP repositories. Has the form: projects/{{my-project}}/locations/{{my-region}}/keyRings/{{my-kr}}/cryptoKeys/{{my-key}}

string

null

no

labels

Labels for the registry

map(string)

{}

no

name

Name of the registry to create

string

n/a

yes

Outputs

Name

Description

docker_repositories

Docker repositories in Artifactory Registry created on GCP

kms_key_name

KMS key name used to encrypt the registry

service_account

The associated service account created for artifact-registry.

Examples