Skip to content

Latest commit

 

History

History

tag_values_iam

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Module Tag Values IAM

This submodule is used to assign roles on Tag Values.

Example Usage

module "tag_keys_iam_binding" {
  source  = "terraform-google-modules/iam/google//modules/tag_values_iam"
  version = "~> 7.7"
  tag_values = [
    google_tags_tag_value.tag_value.name,
  ]
  mode = "authoritative"

  bindings = {
    "roles/viewer" = [
      "serviceAccount:${var.sa_email}",
      "group:${var.group_email}",
      "user:${var.user_email}",
    ]
  }
}

Inputs

Name Description Type Default Required
bindings Map of role (key) and list of members (value) to add the IAM policies/bindings map(any) n/a yes
mode Mode for adding the IAM policies/bindings, additive and authoritative string "additive" no
tag_values List of tag values to add the IAM policies/bindings list(string) n/a yes

Outputs

Name Description
members Members which were bound to the Tag keys.
roles Roles which were assigned to members.
tag_keys Tag keys which received for bindings.