This topic guides you to onboard a Google Cloud Platform (GCP) Billing Account into CoreStack.
There are certain prerequisites that need to be set up in your GCP project before it can be onboarded into CoreStack.
GCP Projects can be onboarded as a Billing Account. Onboarding a Billing Account allows you to discover the cost information of all linked GCP Projects.
The following permissions must be configured in your GCP Project before onboarding.
User account permissions:
Service account permissions:
Billing Account Prerequisites:
Based on the authentication protocol to be used in CoreStack, the following information must be retrieved from the GCP console.
1. OAuth2 Based:
The following values must be generated/copied from your GCP Project and configured in CoreStack.
Client ID & Client Secret:
Scope: The OAuth 2.0 scope information for GCP project is: https://www.googleapis.com/auth/cloud-platform.
The project ID is a unique identifier for a project and is used only within the console.
Redirect URI: The following redirect URI that is configured while creating the client ID and client secret must be used: https://corestack.io/.
The authorization code must be generated with user consent and required permissions.
Note: The values retrieved in the earlier steps can be used instead of <Client ID> and <Redirect URI> specified in the URL format.
Copy these details and provide them while onboarding your GCP Project into CoreStack using OAuth2 option.
2. Service Account Based:
A service account must be created in your GCP Project. You need to create a service account key and download it as a JSON file. Also, Project ID must be retrieved as well from your GCP Project.
How to Download the Credentials File (JSON):
Project ID: Refer the steps in Project ID topic of the OAuth2 Based section.
Provide the JSON and Project ID while onboarding the GCP Project in CoreStack using Service Account option.
3. Billing Account:
In addition to the prerequisites explained earlier, there are a few additional values that must be generated/copied from your GCP Billing Account and configured in CoreStack.
Billing Account ID:
Dataset ID of the BigQuery dataset:
Copy the value provided in the Dataset ID field and proceed to enabling Cloud Billing data export to the created BigQuery dataset.
Provide these details in CoreStack for Billing Account onboarding along with either the OAuth2 or Service Account information explained above, based on your Authentication Protocol selection.
The following steps need to be performed to onboard a GCP Billing Account.
The GCP Project will be onboarded successfully into CoreStack. Relevant insights and information about the resources available in the GCP Project will be populated under each cloud governance pillars in CoreStack.