I can’t update my post above but there’s an even easier way – using postgres environment variables (e.g., PGHOST, PGUSER, etc) which is what :postgrex defaults to when your code does not specify database connection details. I’ve updated my write-up accordingly: https://www.stibbard.io/elixir-phoenix-deploy-google-cloud-run-and-cloud-sql






















