Link billing account to project

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 BillingAccount resource. Ask your Organization IAM administrator to grant you the organization-billing-account-admin role.

  • Global Organization Billing Account User: read, list, and bind the BillingAccount resource. Ask your Organization IAM administrator to grant you the organization-billing-account-user role.

  • Global Organization Billing Account Manager: read, list, create, and update the BillingAccountBinding resource. Ask your Organization IAM administrator to grant you the organization-billing-manager role.

Get the kubeconfig file

To run commands against the Global API server, ensure you have the following resources:

  1. Sign in and generate the kubeconfig file for the Global API server if you don't have one.

  2. Use the path to the kubeconfig file of the Global API server to replace GLOBAL_API_SERVER_KUBECONFIG in 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.

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.