-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Google resource documentation
* google_project_iam_policy * google_project_services
- Loading branch information
1 parent
2e0008c
commit 5f1dd34
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
website/source/docs/providers/google/r/google_project_iam_policy.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
31 changes: 31 additions & 0 deletions
31
website/source/docs/providers/google/r/google_project_services.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters