Skip to main content Skip to content

Service Connections

How to pass a dependency's address to a deployment. There is no public service-connections API today; use deployment configs.

1 min read Last updated: 

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:

Request
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.

Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·