Assign new billing ID
Last updated
Last updated
Once you have chosen Astrafy as you Google Cloud reseller, you will get a dedicated billing ID to use for all your Google Cloud projects. Some admins at your company will be billing user as well as billing viewer on this billing in order to control all the costs. Astrafy will always bill you the same (or less) as what Google Cloud would have billed you in case you would be in direct contract with Google Cloud.
In order to assign the new billing ID to all your projects, it first depends on how you had assigned your current billing ID to your different projects:
Via terraform
Manually through the UI
In case of 1:
you need to communicate to your account manager at Astrafy your terraform service account used to assign the billing ID to your different projects.
Your account manager will then give the role "billing user" on the new Billing ID. This will allow your Terraform service accoutn to use this Billing ID on current and new projects.
On top of this role on the billing account, the terraform service accoutn needs the following roles at organization level:
Project Billing Manager role: This role allows to unlink Billing ID currently attached to a project in order to attach a new billing ID
Once previous IAM steps are done, you can change the billing ID in your terraform code and laucnh a plan/apply to assign the new billing ID.
In case of 2:
you need to communicate to your account manager at Astrafy the admin(s) emails at your company that will proceed with the change manually via the UI.
Those admins will be given the role "billing user" on the new Billing ID.
Those admins also need the Project Billing Manager role at org level in order to unlink the current billing ID and assign the new one.
Once previous IAM steps are done, go to the billign console on the UI via https://console.cloud.google.com/billing
Click on your current billing ID
Click on "Account management" on the bottom left panel
All your Google Cloud projects will now appear in the main panel and next to each project, you can click on the "triple dots" and click on "Change Billing"
A pop-up menu will appear asking you to choose another billing account and in the drop-down list, you will see the new billing ID given to you by Astrafy.
More details can be found in the official Google Cloud documentation:
https://cloud.google.com/billing/docs/how-to/modify-project#change_the_billing_account_for_a_project