Cloudquery: Easily ask questions about your cloud infrastructure
github.com
github.com
Also, relevant tool for similar applications (albeit not SQL based): https://github.com/cloud-custodian/cloud-custodian
Regarding Custodian - This is definitely a great tool with it's own advantages. Some of the dis-advantages that lead me to start cloudquery is that it has a proprietary query language that you have to learn and as such is more limited than SQL (The example above won't be possible out-of-the-box).
1) Fetch data and put into a sql db
2) Query sql db
Wouldn't it be better, performance aside, if there was just one step, i.e. querying the cloud with SQL, essentially an SQL-to-cloud-APIs interface. Otherwise you're always operating on out-of-date data.The idea/advantage to have the data in regular SQL database - is to be able to work with all the standard tools and analytics dashboard you have and familiar with (AWS quicksight, Google DataStudio, sqlite shell, etc...)
This is fine if you're a personal account, but then you wouldn't need this tool in the first place.
If I could create resources with INSERT statements, even better.
There's a lot of stuff that needs to happen for that, and error-handling would be quite tricky.
This would require either having a logic to "converge" the infrastructure – meaning implementing a big chunk of Terraform and adding some features that would make this thing look like a Kubernetes cousin – or having the insert statements blocking for minutes at a time.