terraform-provider-postgresql icon indicating copy to clipboard operation
terraform-provider-postgresql copied to clipboard

Provisioning scripts

Open carlpett opened this issue 6 years ago • 1 comments

(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.

carlpett avatar Sep 12 '18 16:09 carlpett

Try https://www.terraform.io/docs/provisioners/local-exec.html

zytek avatar Apr 02 '19 10:04 zytek