AWS: Connect to your instance
Your instance overview shows everything needed to connect: the endpoint, the port, and your credentials.
Your instance overview shows everything needed to connect: the endpoint, the port, and your credentials.
Endpoint and port
The endpoint is your instance's hostname, your-name.cloud.kividb.io.
The port depends on your TLS setting:
| Setting | Port |
|---|---|
| TLS off | 6379 |
| TLS on | 6379 or 6380 (encrypted) |
| TLS required | 6380 only |
The overview always shows the port your allow-list actually opens, so use the value shown there rather than assuming.
Credentials
Under Access Credentials on the overview you will find your username and password. Click Reveal to see the password, or the copy button to take it without displaying it.
Every client must authenticate. There is no anonymous access — the default
unauthenticated user is disabled, and can do nothing but PING.
Examples
KiviDB speaks the Redis protocol, so any Redis client works.
redis-cli
redis-cli -h your-name.cloud.kividb.io -p 6379 -a "$KIVIDB_PASSWORD"
Node.js (ioredis)
import Redis from "ioredis";
const redis = new Redis({
host: "your-name.cloud.kividb.io",
port: 6379,
password: process.env.KIVIDB_PASSWORD,
});
await redis.set("hello", "kivi");
Python (redis-py)
import os, redis
r = redis.Redis(
host="your-name.cloud.kividb.io",
port=6379,
password=os.environ["KIVIDB_PASSWORD"],
)
r.set("hello", "kivi")
The overview page generates these snippets with your actual endpoint filled in, and adjusts them when TLS is enabled.
Connecting with TLS
When TLS is enabled, download the CA certificate from Configuration and point your client at it. The certificate is issued by a private authority, so your client will not trust it without this.
redis-cli -h your-name.cloud.kividb.io -p 6380 \
-a "$KIVIDB_PASSWORD" --tls --cacert kividb-ca.pem
const redis = new Redis({
host: "your-name.cloud.kividb.io",
port: 6380,
password: process.env.KIVIDB_PASSWORD,
tls: { ca: fs.readFileSync("kividb-ca.pem") },
});
Connect by hostname, not IP address — the certificate is issued against the hostname and verification will fail against an address.
Connecting from inside your VPC
An instance that runs in your own cloud account also has a private endpoint, shown first on the overview under Private endpoint — from inside your VPC:
| Name | Resolves to |
|---|---|
your-name.private.cloud.kividb.io | the primary |
your-name-ro.private.cloud.kividb.io | every replica (Pro) |
your-name-replica-1.private.cloud.kividb.io, ... | one particular replica (Pro) |
Use it from any machine in the same VPC, or in a network connected to it. The traffic stays inside your network, and the port, password and TLS settings are the same as for the public endpoint. Machines in the VPC are allowed in automatically, so you do not need to add the VPC's range to your allow-list.
redis-cli -h your-name.private.cloud.kividb.io -p 6379 -a "$KIVIDB_PASSWORD"
Always connect by the private name, never by a node's private IP address. The address changes whenever a failover replaces the primary, and the name moves with it — usually within a minute. With TLS, the certificate covers the private names too.
See Connect from inside your VPC for who can reach the private endpoints and how to allow peered networks.
If you cannot connect
Connection times out — your IP is almost certainly not on the allow-list. Check Configuration → Network → Allowed IPs. Note that your public IP changes on most home and office connections.
Authentication fails — copy the password from the overview rather than retyping it.
Certificate errors with TLS — you are missing the CA certificate, or you are connecting by IP instead of hostname.
Everything looks right but nothing connects — check whether Block public access is enabled in Configuration. If so, the instance is only reachable through private connectivity.