#!/bin/bash PASSWORD="$(vault.sh read --format=json database/static-creds/postgres-postgres | jq -r .data.password)" DSN="postgresql://postgres:${PASSWORD}@postgres.sea4.crute.me:5432/postgres?sslmode=disable" psql "${DSN}"