Quick overview
This workflow runs manually or daily to inventory multiple Google Cloud projects with Cloud Asset Inventory and Service Usage, stores snapshots and change history in BigQuery, updates a Google Sheets review dashboard, and optionally emails a digest of added/removed resources.
How it works
- Start the scan manually or on a daily schedule at 03:15.
- Discover accessible projects using Cloud Resource Manager, including configured fallback projects when necessary.
- Collect resources through Cloud Asset Inventory, Service Usage and native Google APIs for IAM, API Keys, Cloud Storage, BigQuery, Firestore and Cloud Scheduler.
- Assess IAM and governance by checking public access, broad IAM roles, privileged service accounts, missing labels and location policies.
- Store snapshots in BigQuery and compare them with the previous compatible scan to identify added, modified and removed resources.
- Update Google Sheets with inventory, findings, changes, scan history and coverage details. Preserve review checkboxes, notes and finding statuses between runs.
- Generate HTML/CSV reports and optionally email a digest with CSV attachments when resources are added or removed. Record execution and delivery status in an n8n Data Table.
Setup
- Prepare BigQuery. Create a dataset in your reporting project and grant the required job and table permissions.
- Configure Google Cloud access. Enable the required APIs and grant the service account read permissions for Cloud Resource Manager, Cloud Asset Inventory, Service Usage and the native services being inventoried.
- Prepare Google Sheets. Copy the dashboard template, keep the required tabs and share it with your Google credentials.
- Configure n8n. Import the workflow, connect Google credentials to the HTTP Request nodes and update the Configuration node with your project settings, dataset, spreadsheet ID and scan limits.
- Configure notifications. Set your SMTP credentials and sender/recipient addresses, or disable email with sendEmail=false.
- Test the workflow. Run two manual scans to verify the baseline, BigQuery history, Google Sheets updates and IAM coverage before enabling the schedule.
Requirements
- n8n with Data Table support.
- Google Cloud project with BigQuery enabled.
- Google service account with the required API access and IAM permissions.
- Google Sheets spreadsheet with Editor access for the connected identity.
- SMTP credentials (optional).
Customization
- Adjust project scopes, discovery fallbacks and inventory limits.
- Configure required resource labels and allowed locations.
- Add documented IAM exceptions for accepted configurations.
- Change the scan schedule and email notification settings.
- Customize the Google Sheets dashboard and reporting output.
Additional info
The dashboard contains eight tabs: Dashboard, Inventory, Findings, Changes, Scans, Enabled APIs, Technical resources and Coverage.
The first scan creates a baseline; subsequent scans track changes. Incomplete inventory discovery stops the run rather than reporting missing resources as deletions.
IAM findings support OPEN, ACCEPTED, RESOLVED and UNVERIFIED statuses.
The workflow does not modify IAM permissions, delete resources or inspect application data.
Documentation: GitHub · Setup guide
Support: [email protected]