Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cloudbilling APIs / Billing Sub Accounts #4033

Closed
adarobin opened this issue Jul 15, 2019 · 4 comments · Fixed by GoogleCloudPlatform/magic-modules#2640, hashicorp/terraform-provider-google-beta#2788 or #8022

Comments

@adarobin
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

I'd love to be able to create and manage our billing subaccounts through Terraform.

At my current employer, we provide an Enterprise Agreement, Preconfigured Security/Networking/Reporting/Logging, VPN, and chargeback for GCP to other departments. We'd like to potentially migrate from the current homegrown python based provisioning solution to Terraform. The only functionality that seems to be missing is the ability to create billing subaccounts with Terraform.

New or Affected Resource(s)

  • google_billing_sub_account

Potential Terraform Configuration

resource "google_billing_sub_account" "my_billing_account" {
  name = "My Billing Account"
  master_billing_account = "012345-567890-ABCDEF"
}

References

https://cloud.google.com/billing/reference/rest/v1/billingAccounts/create

@ghost ghost added the enhancement label Jul 15, 2019
@adarobin adarobin changed the title Support cloudbilling APIs Support cloudbilling APIs / Billing Sub Accounts Jul 15, 2019
@adarobin
Copy link
Author

I'm happy to take a try at this, working on getting a CLA signed. Does this need to be a fully generated resource, or is a manual one ok?

@karolsochk
Copy link

@adarobin any plans to progress this ?

@adarobin
Copy link
Author

@karolsochk I'm still pushing for the CLA

modular-magician added a commit to modular-magician/terraform-provider-google that referenced this issue Oct 12, 2020
* initial commit

* for review

* added resource create method and tests

* tabular format tests added

* pr comments implemented

* liniting issues fixed

* import error fixed

* linting issue fixed

* logging bucket creation added only at the project level`

* extra spaces removed

* example added

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit that referenced this issue Oct 12, 2020
* initial commit

* for review

* added resource create method and tests

* tabular format tests added

* pr comments implemented

* liniting issues fixed

* import error fixed

* linting issue fixed

* logging bucket creation added only at the project level`

* extra spaces removed

* example added

Signed-off-by: Modular Magician <[email protected]>
@ghost
Copy link

ghost commented Jan 15, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.