Bring your own cloud: Create a database in your account
Once an AWS account, a Google Cloud project or an Azure subscription is connected and verified (AWS, Google Cloud, Azure), you create databases in it the…
Once an AWS account, a Google Cloud project or an Azure subscription is connected and verified (AWS, Google Cloud, Azure), you create databases in it the same way as any other, with one extra choice at the end.
Create it
- Open the configurator and choose the connection's cloud (AWS, Google Cloud or Azure), a region the connection covers, and the plan, size and replicas you want. Create a single-node instance and Create a high-availability instance explain each option.
- Leave private connectivity off. A database in your account is already inside your network, so it is not needed.
- On the review page, under Where it runs, choose your connected account instead of KiviDB's cloud.
- Set the allowlist for the public endpoint. Machines in your VPC (on Google Cloud, in the subnets the connection names; on Azure, in the virtual network of the connection's subnet) are allowed in automatically, so it only needs the addresses that connect over the internet.
- Create the database.
From Terraform (provider 0.3.0 or later), set cloud_account_id on
kividb_instance, looking the account up with the kividb_cloud_account data
source; see In your own cloud account.
You can also create one from an AI assistant connected to the
KiviDB MCP server: list_cloud_accounts shows your
connected accounts, and create_database takes a cloud_account_id to place
the database in one of them. See MCP tools.
KiviDB creates the machines in your account, in the subnets you chose for that
region. Everything it creates is tagged managed-by=kividb.
- AWS: a high-availability database places its primary and each replica in a different availability zone.
- Google Cloud: the primary is a VM in your subnet, and the replicas are a
regional managed instance group spread across the region's zones. Every VM,
disk, address, snapshot, firewall rule and instance template is named
kividb-…and labelledmanaged-by=kividbandkividb-cloud-account-id. - Azure: everything goes in the resource group the connection was granted:
each node's VM, disks and network interface (in the subnet you named for the
region), a public IP address, a network security group for the database, and
its disk snapshots. Read replicas run in a virtual machine scale set. All of
it is tagged
managed-by=kividbandkividb-cloud-account-id.
If your account isn't offered
Where it runs lists only the connected accounts that can take every database in the order. An account is left out when:
- the connection is not Verified: check it under Settings → Cloud accounts
- the region is not one of the connection's regions, or its network has not been verified
- the database is on the free tier, which always runs in KiviDB's cloud
- private connectivity is turned on for the database
- the database is on a different cloud from the connection: an AWS account takes AWS databases, a Google Cloud project takes Google Cloud databases, an Azure subscription takes Azure databases
- the backup bucket (on Azure, the backup container) has not been verified yet
- the connection does not allow public endpoints
If no connected account qualifies, the choice isn't shown at all and the database is created in KiviDB's cloud.
After it is created
The database works like any other: the same overview, metrics, logs, Explorer, configuration, schedules and backups. Two things are specific to your account:
- Private endpoints appear first under Connectivity. Use them from inside your VPC; see Connect from inside your VPC.
- Backups stay in your account; see Backups and restores.
High availability works as it does in KiviDB's cloud. If the primary fails, KiviDB promotes a replica and moves the endpoints to it, and a lost single-node machine is recovered onto a replacement with its data. See Failover.
A database stays in the account it was created in. To move one to another account, or between your account and KiviDB's cloud, create a new database and load its data from a KDB export.
Your cloud's limits apply
The machines run under your account's quotas and policies. If a database cannot be created or scaled because of a limit in your account, raise the quota or adjust the policy, then try again:
- AWS: EC2 vCPU quotas, and organization policies (SCPs) that deny an action.
- Google Cloud: Compute Engine quotas in the region (CPUs for the machine
family, and in-use IP addresses: every node takes one), and organization
policies such as
gcp.resourceLocationsorcompute.vmExternalIpAccess. - Azure: the subscription's vCPU quota for the VM family in the region (Subscriptions → Usage + quotas), and Azure Policy assignments on the resource group, such as Allowed locations or a policy that forbids public IP addresses.