Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Update READMEs Oct 17, 2019
main.tf [projects-iam] Fix singular project option Nov 1, 2019
outputs.tf Fix outputs in iam modules Oct 2, 2019
variables.tf [project] Breaking. Remove support for *_num options. Support dynamic… Oct 14, 2019

README.md

Module Project IAM

This optional module is used to assign project roles

Example Usage

module "project-iam-bindings" {
  source   = "terraform-google-modules/iam/google//modules/projects_iam"
  projects = ["my-project_one", "my-project_two"]
  mode     = "additive"

  bindings = {
    "roles/compute.networkAdmin" = [
      "serviceAccount:my-sa@my-project.iam.gserviceaccount.com",
      "group:my-group@my-org.com",
      "user:my-user@my-org.com",
    ]
    "roles/appengine.appAdmin" = [
      "serviceAccount:my-sa@my-project.iam.gserviceaccount.com",
      "group:my-group@my-org.com",
      "user:my-user@my-org.com",
    ]
  }
}

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)) n/a yes
mode Mode for adding the IAM policies/bindings, additive and authoritative string "additive" no
project Project to add the IAM policies/bindings string "" no
projects Projects list to add the IAM policies/bindings list(string) <list> no

Outputs

Name Description
members Members which were bound to projects.
projects Projects wich received bindings.
roles Roles which were assigned to members.
You can’t perform that action at this time.