-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for the "google_project" ds
- Loading branch information
thomas jouannic
committed
Nov 7, 2017
1 parent
06b681e
commit 7326e0b
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
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,40 @@ | ||
--- | ||
layout: "google" | ||
page_title: "Google: google_project" | ||
sidebar_current: "docs-google-datasource-project" | ||
description: |- | ||
Provides the Google Project details based on a name | ||
--- | ||
|
||
# google\_project | ||
|
||
Provides access to the latest available Google Project details based a given name. | ||
See more about [project details](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy#projects) in the upstream docs. | ||
|
||
``` | ||
data "google_project" "foo" { | ||
name = "foobar" | ||
} | ||
resource "google_project_services" "project" { | ||
project = "${data.google_project.foo.project_id}" | ||
services = ["iam.googleapis.com", "cloudresourcemanager.googleapis.com"] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The display name of the project. | ||
|
||
## Attributes Reference | ||
|
||
The following attribute is exported: | ||
|
||
In addition to the arguments listed above, the following computed attributes are | ||
exported: | ||
|
||
* `project_id` - The project ID. | ||
|
||
* `number` - The numeric identifier of the project. |