This document provides instructions for linking a billing account to a project in GDC. This allows costs incurred by the project's resources to be tracked and charged to the specified billing account.
Before you begin
Ask your Organization Identity and Access Management (IAM) Admin to grant you the following required roles. These roles bind to either the project namespace for project-level billing, or the platform namespace for organization-level billing:
Global Organization Billing Account Admin: create, manage, and bind the
BillingAccountresource. Ask your Organization IAM administrator to grant you theorganization-billing-account-adminrole.Global Organization Billing Account User: read, list, and bind the
BillingAccountresource. Ask your Organization IAM administrator to grant you theorganization-billing-account-userrole.Global Organization Billing Account Manager: read, list, create, and update the
BillingAccountBindingresource. Ask your Organization IAM administrator to grant you theorganization-billing-managerrole.
Get the kubeconfig file
To run commands against the Global API server, ensure you have the following resources:
Sign in and generate the kubeconfig file for the Global API server if you don't have one.
Use the path to the kubeconfig file of the Global API server to replace
GLOBAL_API_SERVER_KUBECONFIGin these instructions.
Create a billing account
If you need to create a new billing account before linking it to a project, follow the instructions in Create a new billing account.
Link project to billing account
To associate a project with an existing billing account, see the steps for Link a project.
Change the linked billing account for a project
If you need to change the billing account associated with a project, follow the steps For a project.