Skip to content

A Terraform module which helps you create Artifact Registry repositories.

License

Notifications You must be signed in to change notification settings

blackbird-cloud/terraform-google-artifact-docker-registry

Repository files navigation

Terraform Google Artifact Docker Registry Module

A Terraform module which helps you create Artifact Registry repositories.

blackbird-logo

Example

Requirements

Name Version
terraform >= 1
google ~> 4
google-beta ~> 4

Providers

Name Version
google-beta ~> 4

Resources

Name Type
google-beta_google_artifact_registry_repository.default resource
google-beta_google_artifact_registry_repository_iam_member.readers resource
google-beta_google_artifact_registry_repository_iam_member.writers resource

Inputs

Name Description Type Default Required
description (Optional) The user-provided description of the repository. string null no
immutable_tags (Optional) The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created. Defaults to true. bool true no
kms_key_name (Optional) The Cloud KMS resource name of the customer managed encryption key that’s used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created. string null no
labels (Optional) Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes. map(string) {} no
location (Optional) The name of the location this repository is located in. string null no
project (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used. string null no
readers (Optional) Identities that will be granted the read privilege in role. Each entry can have one of the following values:

- allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
- allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
- user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
- serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
- group:{emailid}: An email address that represents a Google group. For example, [email protected].
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- projectOwner:projectid: Owners of the given project. For example, "projectOwner:my-example-project"
- projectEditor:projectid: Editors of the given project. For example, "projectEditor:my-example-project"
- projectViewer:projectid: Viewers of the given project. For example, "projectViewer:my-example-project"
list(string) [] no
repository_id (Required) The last part of the repository name, for example: 'repo1'. string n/a yes
writers (Optional) Identities that will be granted the write privilege in role. Each entry can have one of the following values:

- allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
- allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
- user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
- serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
- group:{emailid}: An email address that represents a Google group. For example, [email protected].
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- projectOwner:projectid: Owners of the given project. For example, "projectOwner:my-example-project"
- projectEditor:projectid: Editors of the given project. For example, "projectEditor:my-example-project"
- projectViewer:projectid: Viewers of the given project. For example, "projectViewer:my-example-project"
list(string) [] no

Outputs

Name Description
registry n/a

About

We are Blackbird Cloud, Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.

Checkout our other 👉 terraform modules

Copyright

Copyright © 2017-2024 Blackbird Cloud

About

A Terraform module which helps you create Artifact Registry repositories.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages