Connect
--instance takes the region, the cluster, and the instance, separated by /.
bqto gives you a port forward. The local port is the port of the instance plus 10000, so 5432
becomes 15432. With managed connection pooling, the local port is 16432.
Clients
Usepsql. With -- CMD, the command gets PGHOST and PGPORT:
What it needs
- The API
alloydb.googleapis.comin the service project. - The role
roles/alloydb.viewerin the service project, together with the roles that every session needs. See Permissions.