🔌Onboarding GCP project onto Economize
After signing up with Economize to onboard your GCP project, select the Connect GCP option when choosing your cloud provider, and follow these steps:
Step 1: Add GCP configuration information
Add Project ID
Enter the project ID that you wish to initially onboard onto Economize. We recommend you to enter the project ID of the main GCP project.
Add BigQuery dataset ID
You can use an existing BigQuery dataset or create a new one dedicated specifically for importing cloud billing data by following these instructions.
In the GCP console, navigate to BigQuery, and in the Dataset info screen of BigQuery, observe the value on the Data set ID line and copy and paste it into the provided field during the onboarding process.
Step 2: Enable cloud billing export to the BigQuery dataset
GCP provides an option to export your billing data to the BigQuery dataset. This consists of details regarding your usage, and pricing data.
Click the hamburger menu at the top left of the GCP console, and select Billing.
In the left Billing navigation menu, select Billing Export.
For both Standard usage cost and Detailed usage cost, click EDIT SETTINGS to enable them.
Configure the following settings:
From the Projects list, select the project you set up to contain your billing data.
For Dataset, select the dataset that you set up to contain your exported Cloud Billing data.
Click on SAVE.
Once both exports are enabled they will indicate the same as follows:
Step 3: Validate service account credentials
Economize uses a service account to integrate with your GCP account. You can choose to provide access either by using the Service account managed by Economize or by Bringing your own service account.
You will need to provide the service account with the required permissions as mentioned in the next two steps.
When using the service account managed by Economize, you will need to copy the service account generated at the time of the onboarding process within the application and use it to provide the permission as listed in steps 4 and 5.
Step 4: Grant the viewer permission to the service account
Navigate to the IAM console, and complete the steps below to grant the service account permission to access project resources.
At the top of the IAM console, select the project whose ID you entered in the first step.
Configure the permission as follows:
In the center of the page, under Permissions for project "My Project XYZ", click + GRANT ACCESS.
In the New principals field, under Add principals, paste the value of the service account based on your selected access method in Step 3.
In the Role field, under Assign roles, search for and select Viewer.
Click on SAVE.
Step 5: Assign BigQuery Data Editor role to the service account
Go to BigQuery, and complete the following steps to permit the service account to access the BigQuery dataset.
At the top of the BigQuery console, ensure the project containing the BigQuery dataset whose ID you entered in the first step is selected, then navigate to the Explorer panel, and select your project to expand it.
Configure the permission as follows:
Select the three vertical dots next to the dataset name, then click Share.
On the Share permissions panel that appears on the right, click + ADD PRINCIPAL.
In the New principals field, under Add principals, paste the value of the service account based on your selected access method in Step 3.
In the Role field, under Assign roles, search for and select BigQuery Data Editor.
Click on SAVE.
SUCCESS
It can take up to 24–48 hours for the data to fully propagate if the linked billing dataset was created recently.
So, you might not be able to use all the features right away but you can still utilize the Recommendations to start optimizing your costs.
Last updated