It sounds like you're currently struggling against provisioning new database instances (or clusters) when the delineation is actually at the database within that instance
Compare:
psql --host=team1.example -d team1
# versus
psql --host=the-db.example -d team1
Sometimes one can get away with schema level split, which can allow cross schema references in a read only setup, but carries coupling concerns
psql --host=the-db.example -d my_db -U team1 "select * from team1.orders o inner join team2.products p ..."
I don't mean to troubleshoot over HN comments, as the problem space is filled with nuance and trade-offs, but intended it as "for your consideration"