GCP Billing Account Setup

Source code & Installation

The source code of this kit module can be found hereopen in new window

Run the following command to install the kit module:

collie kit import gcp/admin/billing-account
1

This documentation is intended as a reference documentation for cloud foundation or platform engineers using this module.

Requirements

NameVersion
terraform>= 1.0
google~> 4.80.0

Modules

NameSourceVersion
collie_billing_view./modules/collie-billing-viewn/a

Resources

NameType
google_bigquery_table_iam_member.cloudfoundation_tf_deploy_useropen in new windowresource
google_billing_account_iam_binding.billing_administratorsopen in new windowresource
google_project_iam_custom_role.cloudfoundation_tf_deploy_useropen in new windowresource
google_project_iam_member.cloudfoundation_tf_deploy_useropen in new windowresource
google_billing_account.accountopen in new windowdata source

Inputs

NameDescriptionTypeDefaultRequired
billing_account_idid of the billing account to manage.stringn/ayes
billing_usersids of users that require billing admin access.list(string)n/ayes
cloud_billing_export_dataset_idId of the BigQuery dataset holding the Cloud Billing export inside cloud_billing_export_project, without project prefix.stringn/ayes
cloud_billing_export_projectId of the GCP project holding the Cloud Billing export dataset. The export has to be set up manually since there's no terraform support for this.stringn/ayes
cloud_billing_export_table_idName of the table holding the Cloud Billing export data inside the dataset identified by cloud_billing_export_dataset_id.stringn/ayes
enable_collie_viewWhen enabled, will create a view called collie_billing_view to be used by collie cli for GCP cost reportingbooln/ayes
service_account_emailn/astringn/ayes
service_account_namen/astringn/ayes

Outputs

NameDescription
collie_billing_view_idsn/a
documentation_mdn/a