CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 20 to 100 TB usable capacity on a four-node erasure-coded cluster
Monthly cost
$17,354.69
Annual cost
$208,256/year
| Compute | $2,354.69 |
| Storage | $15,000.00 |
| Other | $0.00 |
Saves $257.89/mo (1%) across m8g.4xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Storage Node | 4 × m7i.4xlarge | 16 | 64 | 30 TB nvme |
This medium sizing configuration fits workloads requiring 20 to 100 TB of usable capacity on a four-node erasure-coded cluster inside AWS us-east-1. The storage line item drives the monthly cost at this tier, totaling $15000.00 out of $17354.69. High availability is disabled in this architecture, creating a resilience risk if a node experiences an outage. Migrating this exact topology to Google Cloud requires re-evaluating equivalent local NVMe instances.
Share the current URL or copy the AWS Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
data "aws_availability_zones" "available" {
state = "available"
}
data "aws_ami" "debian_12_x86" {
most_recent = true
owners = ["136693071363"]
filter {
name = "name"
values = ["debian-12-amd64-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}
locals {
azs = slice(data.aws_availability_zones.available.names, 0, 3)
}
resource "aws_vpc" "workload" {
cidr_block = "10.42.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
Name = "minio-vpc"
}
}
resource "aws_subnet" "workload" {
count = 3
vpc_id = aws_vpc.workload.id
cidr_block = cidrsubnet(aws_vpc.workload.cidr_block, 8, count.index)
availability_zone = local.azs[count.index]
tags = {
Name = "minio-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "storage_node_1" {
count = 4
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.4xlarge"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = false
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "minio-storage-node-1-${count.index + 1}"
App = "minio"
Role = "storage-node"
}
}
resource "aws_ebs_volume" "storage_node_1_data" {
count = 4
availability_zone = local.azs[count.index % length(local.azs)]
size = 30000
type = "gp3"
encrypted = true
tags = {
Name = "minio-storage-node-1-data-${count.index + 1}"
App = "minio"
Role = "storage-node"
}
}
resource "aws_volume_attachment" "storage_node_1_attach" {
count = 4
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.storage_node_1_data[count.index].id
instance_id = aws_instance.storage_node_1[count.index].id
}
Reference architecture: MinIO for four-node-erasure-coded, version MinIO / AIStor erasure-coded reference topologies (post-Feb 2026 CE archive), retrieved November 11, 2026.
https://min.io/docs/minio/linux/operations/installation.html
Pricing: AWS pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on MinIO erasure-coded deployment topologies and public reference hardware guidance, translated into VM-based object-storage planning tiers.
Estimate excludes commercial AIStor subscription fees, raw-to-usable parity overhead, cross-site replication, and high-bandwidth egress charges.
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Self-managed Couchbase Server Enterprise for distributed JSON data, caching, and full-text search workloads.
Self-managed EDB Postgres Advanced Server for enterprise PostgreSQL workloads with optional primary-standby HA.