vault write database/config/gen_db_12 plugin_name="postgresql-database-plugin" connection_url="postgresql://{{username}}:{{password}}@xxxx.xxxxxxxxxxxx.xxx:5433/gen_db_12?sslmode=disable" allowed_roles="role" username="xxx" password="xxx"
vault write database/roles/role db_name="gen_db_12" creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";" default_ttl="100h" max_ttl="320h"
vault read database/creds/role
Error reading database/creds/role: Error making API request.
URL: GET http://127.0.0.1:8200/v1/database/creds/role
Code: 500. Errors:
* 1 error occurred:
* pq: permission denied to create role
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/3f2ee996-c948-4bda-a952-cacd8b2b75d6%40googlegroups.com.