I'm using Hasura cloud and I can't connect to fly.io postgres app

Hey, you’ll need to add a services block to your Postgres app configuration. And to get the configuration fly config save --app <app-name> for more details check out this thread: Public URL / IP for Postgres Cluster.