Skip to content

Commit

Permalink
Add new Google resource documentation
Browse files Browse the repository at this point in the history
* google_project_iam_policy
* google_project_services
  • Loading branch information
evandbrown committed Dec 13, 2016
1 parent 2e0008c commit 5f1dd34
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: "google"
page_title: "Google: google_project_iam_policy"
sidebar_current: "docs-google-project-iam-policy"
description: |-
Allows management of an IAM policy for a Google Cloud Platform project.
---

# google\_project\_iam\_policy

Allows creation and management of an IAM policy for an existing Google Cloud
Platform project.

## Example Usage

```js
resource "google_project_iam_policy" "project" {
project_id = "your-project-id"
policy_data = "${data.google_iam_policy.admin.policy_data}"
}

data "google_iam_policy" "admin" {
binding {
role = "roles/editor"
members = [
"user:jane@example.com",
]
}
}
```

## Argument Reference

The following arguments are supported:

* `project_id` - (Required) The project ID.
Changing this forces a new project to be created.

* `policy_data` - (Optional) The `google_iam_policy` data source that represents
the IAM policy that will be applied to the project. The policy will be
merged with any existing policy applied to the project.

Changing this updates the policy.

Deleting this removes the policy, but leaves the original project policy
intact. If there are overlapping `binding` entries between the original
project policy and the data source policy, they will be removed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: "google"
page_title: "Google: google_project_services"
sidebar_current: "docs-google-project-services"
description: |-
Allows management of API services for a Google Cloud Platform project.
---

# google\_project\_services

Allows management of enabled API services for an existing Google Cloud
Platform project.

## Example Usage

```js
resource "google_project_services" "project" {
project_id = "your-project-id"
services = ["iam.googleapis.com", "cloudresourcemanager.googleapis.com"]
}
```

## Argument Reference

The following arguments are supported:

* `project_id` - (Required) The project ID.
Changing this forces a new project to be created.

* `services` - (Optional) The list of services that are enabled. Supports
update.
6 changes: 6 additions & 0 deletions website/source/layouts/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<li<%= sidebar_current("docs-google-project") %>>
<a href="/docs/providers/google/r/google_project.html">google_project</a>
</li>
<li<%= sidebar_current("docs-google-project-iam-policy") %>>
<a href="/docs/providers/google/r/google_project_iam_policy.html">google_project_iam_policy</a>
</li>
<li<%= sidebar_current("docs-google-project-services") %>>
<a href="/docs/providers/google/r/google_project_services.html">google_project_services</a>
</li>
<li<%= sidebar_current("docs-google-service-account") %>>
<a href="/docs/providers/google/r/google_service_account.html">google_service_account</a>
</li>
Expand Down

0 comments on commit 5f1dd34

Please sign in to comment.