Skip to content

Crazy-Hopper/terraform-google-gcp-artifact-registry

 
 

Repository files navigation

Terraform GCP Artifact Registry

tflint status

This module enable Artifact Registry api in the GCP (Google Cloud Platform) project, create repositories and assign read and write IAM permissions.

You MUST configure the required "google" provider inside your root module.

This module is provided without any kind of warranty and is GPL3 licensed.

Providers

Name Version
google >= 3.0

Requirements

Name Version
terraform >= 1.3
google >= 3.0

Inputs

Name Description Type Default Required
artifact_registry_listers List of principals that can list Artifact Registry repositories. list(string) [] no
artifact_registry_listers_custom_role_name Name of the custom role for Artifact Registry listers. string "custom.artifactRegistryListers" no
default_location The default location for the Artifact Registry repositories. string "europe-west1" no
project_id The GCP project ID that hosts the Artifact Registry. string n/a yes
repositories List of Artifact Registry repositories to create.
map(object({
description = string
format = optional(string, "DOCKER")
readers = optional(list(string), [])
writers = optional(list(string), [])
location = optional(string, "")
}))
n/a yes

Outputs

Name Description
custom_role_artifact_registry_lister_id The ID of the custom role for Artifact Registry listers.
repositories The created Artifact Repository repositories.

Resources

Name Type
google_artifact_registry_repository.repositories resource
google_artifact_registry_repository_iam_member.member resource
google_project_iam_binding.artifact_registry_lister resource
google_project_iam_custom_role.artifact_registry_lister resource
google_project_service.project resource

Modules

No modules.

About

Terraform Google GCP Artifact Registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 90.8%
  • Makefile 9.2%