Prerequisites
- GCP project with owner or admin access
gcloud
CLI installed and configured- Cloudgeni account (free trial available)
- Time estimate: 2 minutes
Step 1: Create Service Account
Set up GCP Service Account
Set up GCP Service Account
Set your project ID and service account name, then create a dedicated service account for Cloudgeni:
The service account email will be:
{SA_NAME}@{PROJECT_ID}.iam.gserviceaccount.com
Step 2: Assign IAM Roles
Grant Read-Only Permissions
Grant Read-Only Permissions
Assign the minimum required roles for Cloudgeni to scan your infrastructure:
These roles provide read-only access to your GCP resources. Cloudgeni cannot make any changes to your infrastructure.
Step 3: Create Service Account Key
Generate JSON Key File
Generate JSON Key File
Create and download the service account key file:Result: You’ll have a
{SA_NAME}-key.json
file in your current directory.Keep this key file secure. It provides access to your GCP project. Never commit it to version control.
Step 4: Configure Cloudgeni Integration
Add GCP Integration in Cloudgeni
Add GCP Integration in Cloudgeni
- Log into your Cloudgeni dashboard
- Navigate to Settings > Integrations > Cloud
- Click “Connect GCP”
- Enter your configuration:
- Name:
GCP Production
(or your environment name) - Project ID: Your GCP project ID
- Service Account Key: Upload your service account key JSON file
- Name:
- Click “Create Integration”
A scan of all your GCP resources will start automatically after creating the integration.
Coming Soon: Keyless Authentication
Workload Identity Federation
We’re working on adding support for keyless authentication methods for GCP, similar to our existing support for AWS and Azure. This will eliminate the need for long-lived service account keys and provide enhanced security through workload identity federation.Stay tuned for updates!