Service Connections
How to pass a dependency's address to a deployment. There is no public service-connections API today; use deployment configs.
Connecting a deployment to a dependency
To let one deployment reach another service or a database, pass the address as an environment variable in the deployment’s configs:
curl -X PATCH https://api.zop.dev/deployments/<deploymentId>/configs \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "configs": { "envVars": { "DB_URL": "postgres://checkout-db:5432/checkout" } } }'The change takes effect on the next revision and is rolled out as a rolling update. See Deployments for the configs format.
For databases created through ZopDay, connection details are managed as provisioning connections.