FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

google_project

Allows management of an existing Google Cloud Platform project, and is currently limited to adding or modifying the IAM Policy for the project.

When adding a policy to a project, the policy will be merged with the project’s existing policy. The policy is always specified in a google_iam_policy data source and referencd from the project’s policy_data attribute.

Example Usage

resource "google_project" "my-project" {
    id = "your-project-id"
    policy_data = "${data.google_iam_policy.admin.policy}"
}

data "google_iam_policy" "admin" {
  binding {
    role = "roles/storage.objectViewer"
    members = [
      "user:[email protected]",
    ]
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:


See the source of this document at Terraform.io