github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/google/r/google_project.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_project"
     4  sidebar_current: "docs-google-project"
     5  description: |-
     6   Allows management of a Google Cloud Platform project. 
     7  ---
     8  
     9  # google\_project
    10  
    11  Allows management of an existing Google Cloud Platform project, and is
    12  currently limited to adding or modifying the IAM Policy for the project.
    13  
    14  When adding a policy to a project, the policy will be merged with the
    15  project's existing policy. The policy is always specified in a
    16  `google_iam_policy` data source and referencd from the project's
    17  `policy_data` attribute.
    18  
    19  ## Example Usage
    20  
    21  ```js
    22  resource "google_project" "my-project" {
    23      id = "your-project-id"
    24      policy_data = "${data.google_iam_policy.admin.policy}"
    25  }
    26  
    27  data "google_iam_policy" "admin" {
    28    binding {
    29      role = "roles/storage.objectViewer"
    30      members = [
    31        "user:evandbrown@gmail.com",
    32      ]
    33    }
    34  }
    35  ```
    36  
    37  ## Argument Reference
    38  
    39  The following arguments are supported:
    40  
    41  * `id` - (Required) The project ID.
    42      Changing this forces a new project to be referenced.
    43  
    44  * `policy` - (Optional) The `google_iam_policy` data source that represents
    45      the IAM policy that will be applied to the project. The policy will be
    46      merged with any existing policy applied to the project.
    47  
    48      Changing this updates the policy.
    49  
    50      Deleting this removes the policy, but leaves the original project policy
    51      intact. If there are overlapping `binding` entries between the original
    52      project policy and the data source policy, they will be removed.
    53  
    54  ## Attributes Reference
    55  
    56  In addition to the arguments listed above, the following computed attributes are
    57  exported:
    58  
    59  * `name` - The name of the project.
    60  
    61  * `number` - The numeric identifier of the project.