-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Description
Hello,
I have a requirement where I'm need to get a list of all databases from current PG instance and use it to create another non-PG related resources for each of database.
In PG it could be done with simple SQL query:
SELECT datname FROM pg_catalog.pg_database;
Example of data resource:
data "postgresql_databases" "this" {}
Result:
[db1, db2, db3]
Additionally, nice to have in-build regex filter to omit default databases like postgres, template0 and template1.
simonebenati, joaocc, alessio-form3, houserx-jmcc and philomory
Metadata
Metadata
Assignees
Labels
No labels