cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi.

I have a private link set up pointing to a PostgreSQL database running on AWS. The private link service itself is already provisioned and configured on the BTP side. What I need to understand is how to wire this up properly in a CAP Node.js project.

Does @cap-js/postgres automatically route queries through the private link once the service is bound to the app, or does it need additional configuration to know it should use that network path?

I also added the private link service as a requires entry in the SRV module inside mta.yaml, so the binding is there at runtime. But I am not sure if that alone is enough for CAP to pick up the database connection through it, since there is no standard PostgreSQL service instance, just the private link binding exposing the endpoint.

Is binding it in mta.yaml the right approach, or is there something else needed on the CAP or adapter level to make this work end to end?

server.js

fabi2295_1-1785865725125.png

mta

fabi2295_2-1785865769863.png

Requires SRV with private link 

fabi2295_3-1785865842598.png

package.json

fabi2295_0-1785865654856.png

 

#privatelink #btp #capnodejs #cap #postgres #postgresoncap

View Entire Topic
fabi2295
Participant
0 Likes

@Willem_Pardaens 

Thank you for the response, I'll test it and I'll come back with the answer if it works.