terraform-provider-postgresql
terraform-provider-postgresql copied to clipboard
Provisioning scripts
(I couldn't find anything about this, neither docs or feature requests, which seems strange, so I expect my searching skills are just bad. Sorry)
It would be useful to have a provisioner-like interface for running one-off scripts as part of database creation. Is this possible somehow already? Specifically, I need to create a few views which require super-user access, but I don't want to share the super-user credentials with my apps, so I would like to create them when I provision the database.
Try https://www.terraform.io/docs/provisioners/local-exec.html