Skip to content

googleProject

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

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleProjectProject = new google.dataGoogleProject.DataGoogleProject(
  this,
  "project",
  {}
);
new cdktf.TerraformOutput(this, "project_number", {
  value: dataGoogleProjectProject.number,
});

Argument Reference

The following arguments are supported:

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

Attributes Reference

The following attributes are exported:

  • number - The numeric identifier of the project.

See google_project resource for details of the available attributes.