From c7632cdf2e9089843ae241df7736790d091379f9 Mon Sep 17 00:00:00 2001 From: Evan Brown Date: Mon, 20 Feb 2017 09:32:24 -0800 Subject: [PATCH] providers/google: google_project supports billing account (#11653) * Vendor google.golang.org/api/cloudbilling/v1 * providers/google: Add cloudbilling client * providers/google: google_project supports billing account This change allows a Terraform user to set and update the billing account associated with their project. * providers/google: Testing project billing account This change adds optional acceptance tests for project billing accounts. GOOGLE_PROJECT_BILLING_ACCOUNT and GOOGLE_PROJECT_BILLING_ACCOUNT_2 must be set in the environment for the tests to run; otherwise, they will be skipped. Also includes a few code cleanups per review. * providers/google: Improve project billing error message --- r/google_project.html.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/r/google_project.html.markdown b/r/google_project.html.markdown index 3e662c2a..d84d38cc 100755 --- a/r/google_project.html.markdown +++ b/r/google_project.html.markdown @@ -49,6 +49,12 @@ The following arguments are supported: This is required if you are creating a new project. Changing this forces a new project to be created. +* `billing_acount` - (Optional) The alphanumeric ID of the billing account this project + belongs to. The user or service account performing this operation with Terraform + must have Billing Account Administrator privileges (`roles/billing.admin`) in + the organization. See [Google Cloud Billing API Access Control](https://cloud.google.com/billing/v1/how-tos/access-control) + for more details. + * `name` - (Optional) The display name of the project. This is required if you are creating a new project.