Skip to content

IAmFrench/terraform-google-billing-export

Repository files navigation

Google Cloud Billing export Terraform Module

Terraform module witch creates billing export on GCP.

This module will create BigQuery datasets for both standard and detailed billing exports.

You will need to complete the setup by manually linking in the Google Cloud console dataset ids to billing exports. (As there is not API / Terraform resource yet).

Learn more: https://cloud.google.com/billing/docs/how-to/export-data-bigquery-setup

Feature Request: https://issuetracker.google.com/issues/70525274

GitHub issue: hashicorp/terraform-provider-google#4848

Requirements

Name Version
terraform >= 1.1.0
google >= 4.58.0

Providers

Name Version
google >= 4.58.0

Modules

No modules.

Resources

Name Type
google_bigquery_dataset.detailed_billing_export_dataset resource
google_bigquery_dataset.standard_billing_export_dataset resource

Inputs

Name Description Type Default Required
billing_dataset_location Location used for BigQuery billing datasets. string n/a yes
billing_project_id Project ID used for hosting BigQuery billing datasets. string n/a yes
detailed_billing_export_dataset_id Dataset ID used for the detailed billing export. string "detailed_billing_export" no
standard_billing_export_dataset_id Dataset ID used for the standard billing export. string "standard_billing_export" no

Outputs

No outputs.