Billing information for a project.
To get more information about ProjectInfo, see:
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"
}
The following arguments are supported:
billing_account
-
(Required)
The ID of the billing account associated with the project, if
any. Set to empty string to disable billing for the project.
For example, "012345-567890-ABCDEF"
or ""
.project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/billingInfo
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.ProjectInfo can be imported using any of these accepted formats:
projects/{{project}}
{{project}}
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}}
This resource supports User Project Overrides.