SQL Console
Using SQL Console to run advanced queries
Last updated
Was this helpful?
Using SQL Console to run advanced queries
Last updated
Was this helpful?
You can run SQL queries against the synced data using SQL Console. The SQL Console provides access to the data from the latest sync in the underlying ClickHouse database.
In the left sidebar, you see Asset Inventory Tables, which are tables normalized across all cloud resources synced. Additionally, Integration Tables includes all the tables synced from the individual . Expand the tables to see their schema.
For example, here is a query that finds all unassigned EC2 images, by joining the aws_ec2_images
table with the aws_ec2_instances
table:
Press the Run Query button (or Ctrl/Command + Enter shortcut) to run the query. The results will be displayed in the bottom part of the screen.
To copy a value from a table cell or to see the details, click the cell and a sidebar with "Cell Inspection" will open. This allows exploring and getting the values from more complex JSON objects in the query results.
The data integrations sync comes directly from the API endpoints the integrations are connecting to and the Integrations Tables are not transformed in any way. This makes it easy to go to the API endpoint documentation to learn what the data looks like and how it relates to other API endpoints (and eventually tables in CloudQuery Platform).
CloudQuery’s SQL Console gives you unlimited power to query your cloud inventory in real-time. But where do you start? We have compiled a collection of practical examples showcasing how you can leverage CloudQuery for security, compliance, and cost optimization.
Queries use . Similar to Searches, Queries can be saved, shared and used via the .
To find what API endpoint a specific table syncs from, find the table in CloudQuery Hub. For example, here is the documentation for .
For additional hints or ideas on how to use the synced data, see the .
➡️