Google Onboarding
Onboarding Google Cloud Projects using Service Account (SA)
GCP Cloud Onboarding
Creating SA - Customer Prerequisites
Customer must follow bellow requirements and prepare SA with required roles and permissions to proceed on onboarding to INSIGHT platform:
Login to Cloud portal
Create one Service Account in any existing project How to create a service account , then add Key, JSON type, download key for later use.
Assign built-in 'Viewer' role for created SA per organisation or specific projects for INSIGHT access scope How to grant a single role or
Ensure Services and APIs are enabled on the same project holding Service account created for onboarding purposes:
Cloud Resource Manager API
Recommender API
Cloud Asset API
Security Command Center API
Important! API's must be enabled on the project where Service Account is created.
Onboarding SA - INSIGHT configuration
Login to INSIGHT platform
Open Cloud Management menu under Administration
Add Google Organisation using SA credentials, example:
{ "type": "service_account", "project_id": "nice-text-id", "private_key_id": "long-key", "private_key": "long-text", "client_email": "email@nice-text-id.iam.gserviceaccount.com", "client_id": "685746216876518", "auth_uri": "https://accounts.google.com/o/oauth2/auth ", "token_uri": "https://oauth2.googleapis.com/token ", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs ", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/email%40nice-text-id.iam.gserviceaccount.com " }
Save [done]
GCP Cloud billing Onboarding
Note: Google Cloud cost is not accessible via API, therefore you need to create billing exports.
Creating Cost Export
Customer must follow bellow requirements and prepare cost export to proceed on onboarding to INSIGHT platform. To start collecting your Cloud Billing data, you must enable Cloud Billing data export to BigQuery following this guide steps you need to do:
Login to Cloud portal
Select to use to create billing export
Verify that billing is enabled
Enable the BigQuery Data Transfer Service API for the project
Create a BigQuery dataset
Enable Cloud Billing export to the BigQuery dataset [Detailed usage cost]
Grand Service account permissions for the project used for cost export:
bigquery.tables.getData
Ensure APIs are enabled on the project for the project used for cost export:
BigQuery API
Onboarding Cost Export
Login to INSIGHT platform
Open Cloud Management menu under Administration
Add Billing Export Configuration
Project Name [Project name where cost export data set is located]
Cost Export Table ID [projectname.datasetname.tablename], can be copied from: BigQuery->SQLWorkspace->Project->DataSet->Table->Details->TableID
Save [done]
Last updated