This is a strange case. My understanding is, the workaround should work, but I post here for a confirmation.
My company prefers PowerBI more than Grafana as the dashboard for CloudQuery (CQ) data, because it’s more powerful.
But PowerBI has a weird limitation - it can only connect to one database server with one user.
When I designed the PostgreSQL (PSQL), I set two databases:
cloudquery_aws_prod
(user is same name of the database name, with ALL PRIVILEGES)cloudquery_azure_prod
(user is same name of the database name, with ALL PRIVILEGES)
It works well, until the business/data teams want to access both data from that PSQL Server with PowerBI.
It can’t.
So the workaround is to sync both AWS and Azure data into one database.
My question here is:
Will it be fine to do that? AWS/Azure has different view resource and policy SQL scripts. Do they work fine without any conflicts when they both run on the same database?
AWS’s views and policies:
Azure’s views and policies: