» 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

  • bucket_name: (Required) The bucket to store reports in.

  • prefix: (Optional) A prefix for the reports, for instance, the project name.

  • project: (Optional) The project to set the export bucket on. If it is not provided, the provider project is used.

» Import

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

$ terraform import google_project_usage_export_bucket.usage_export {{project}}