Audit Google Cloud inventory and IAM with BigQuery and Google Sheets
Ready for 3.0What this workflow does
This workflow has 55 nodes and runs on a schedule (every day at 03:00) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls cloudresourcemanager.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every day at 03:00) (plus 1 other trigger).
- Configuration (Edit Fields (Set)): sets or maps fields
- Discover accessible projects (HTTP Request): calls cloudresourcemanager.googleapis.com
- Initialize run (Code): runs custom JavaScript code
- Ensure run registry (Data table): create (table)
- Register running (Data table): create or update
- Check inventory dataset (HTTP Request): calls an HTTP API
- Prepare setup job (Code): runs custom JavaScript code
- Record failure (Code): runs custom JavaScript code
- Submit BigQuery job (HTTP Request): calls an HTTP API (POST)
- Register failure (Data table): create or update
…plus 43 more steps. See the full node list below.
HTTP calls to: cloudresourcemanager.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Send Email
n8n-nodes-base.emailSend - Stop and Error
n8n-nodes-base.stopAndError
From the author
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…