Skip to content

Latest commit

 

History

History

artifact_registry_iam

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Module Artifact registry repository IAM

This optional module is used to assign artifact registry repository iam roles.

Example Usage

module "artifact-registry-repository-iam-bindings" {
  source  = "terraform-google-modules/iam/google//modules/artifact_registry_iam"
  version = "~> 8.0"

  project      = "my-project"
  repositories = ["my-project_one", "my-project_two"]
  location     = "us-central1"
  mode         = "additive"

  bindings = {
    "roles/artifactregistry.writer" = [
      "serviceAccount:[email protected]",
      "group:[email protected]",
      "user:[email protected]",
    ]
  }
}

Inputs

Name Description Type Default Required
bindings Map of role (key) and list of members (value) to add the IAM policies/bindings map(list(string)) {} no
location Location of the provided artifact registry repositories string n/a yes
mode Mode for adding the IAM policies/bindings, additive and authoritative string "additive" no
project Project where the artifact registry repositories are placed string n/a yes
repositories Artifact registry repositories list to add the IAM policies/bindings list(string) [] no

Outputs

Name Description
members Members which were bound to artifact registry repositories.
repositories Artifact registry repositories which received bindings.
roles Roles which were assigned to members.