google_billing_project_info

Billing information for a project.

To get more information about ProjectInfo, see:

Example Usage - Billing Project Info Basic

resource "google_project" "project" {
  project_id = "tf-test%{random_suffix}"
  name       = "tf-test%{random_suffix}"
  org_id     = "123456789"
  lifecycle {
    ignore_changes = [billing_account]
  }
}

resource "google_billing_project_info" "default" {
  project         = google_project.project.project_id
  billing_account = "000000-0000000-0000000-000000"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

ProjectInfo can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import ProjectInfo using one of the formats above. For example:

import {
  id = "projects/{{project}}"
  to = google_billing_project_info.default
}

When using the terraform import command, ProjectInfo can be imported using one of the formats above. For example:

$ terraform import google_billing_project_info.default projects/{{project}}
$ terraform import google_billing_project_info.default {{project}}

User Project Overrides

This resource supports User Project Overrides.