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
mta
Requires SRV with private link
package.json
#privatelink #btp #capnodejs #cap #postgres #postgresoncap
Request clarification before answering.
Thank you for the response, I'll test it and I'll come back with the answer if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.