google_project_usage_export_bucket

Sets up a usage export bucket for a particular project. A usage export bucket is a pre-configured GCS bucket which is set up to receive daily and monthly reports of the GCE resources used.

For more information see the Docs and for further details, the API Documentation.

Example Usage

resource "google_project_usage_export_bucket" "usage_export" {
  project     = "development-project"
  bucket_name = "usage-tracking-bucket"
}

Argument Reference


Timeouts

This resource provides the following Timeouts configuration options: configuration options:

Import

A project's Usage Export Bucket can be imported using this format:

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

import {
  id = "{{project_id}}"
  to = google_project_usage_export_bucket.default
}

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

$ terraform import google_project_usage_export_bucket.default {{project_id}}