terraform-provider-google/website/docs/d/google_project.html.markdown
ishashchuk 67ecf5345e Data source for retrieving project information (#1111)
* Project data source

* Mirroring project datasource from project resource (#14)
2018-02-28 12:37:24 -08:00

848 B

layout page_title sidebar_current description
google Google: google_project docs-google-datasource-project Retrieve project details

google_project

Use this data source to get project details. For more information see API

Example Usage

data "google_project" "project" {}

output "project_number" {
  value = "${data.google_project.project.number}"
} 

Argument Reference

The following arguments are supported:

  • project_id - (Optional) The project ID. If it is not provided, the provider project is used.

Attributes Reference

The following attributes are exported:

See google_project resource for details of the available attributes.