You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that means that if someone wants to use a PostgreSQL directly from a hyperscaler and does provides the credentials using a user provided service (UPS) the connection will not work out of the box. To make the connection work this additional entry in the package.json of the deployer and service module is needed:
If instead tags would be used to to read credentials from VCAP_SERVICES it would be easier to get them from the UPS. Using the UPS configuration via mta.yaml it's possible to set tags:
service-tags: ["relational", "database"]
You can find a working in mta.yaml#L127. This tags mimic the tags that the PostgreSQL on SAP BTP, hyperscaler option creates in VCAP_SERVICES:
"tags": ["relational", "database"]
So I would suggest to read VCAP_SERVICES by the tag "database".
The text was updated successfully, but these errors were encountered:
For hyperscaler, you could then simply tag them with postges.
Reason is that the tags database and relational are not unique and e. g. also used for SAP HANA.
As long as the Hyperscaler Service still works with additional manual settings I'm fine with this approach. For a User Provided Service the tag must be defined anyway.
As described in the migration guide from cds-pg to @cap-js/postgres the
that means that if someone wants to use a PostgreSQL directly from a hyperscaler and does provides the credentials using a user provided service (UPS) the connection will not work out of the box. To make the connection work this additional entry in the package.json of the deployer and service module is needed:
If instead tags would be used to to read credentials from VCAP_SERVICES it would be easier to get them from the UPS. Using the UPS configuration via mta.yaml it's possible to set tags:
You can find a working in mta.yaml#L127. This tags mimic the tags that the PostgreSQL on SAP BTP, hyperscaler option creates in VCAP_SERVICES:
"tags": ["relational", "database"]
So I would suggest to read VCAP_SERVICES by the tag "database".
The text was updated successfully, but these errors were encountered: