Terraform resource: google project iam policy

From wikieduonline
Jump to navigation Jump to search
google_project_iam_policy
resource "google_project_iam_policy" "project" {
  project     = "your-project-id"
  policy_data = data.google_iam_policy.admin.policy_data
}

data "google_iam_policy" "admin" {
  binding {
    role = "roles/editor"

    members = [
      "user:[email protected]",
    ]
  }
}


See also

Advertising: