CloudEstimate

Size Valkey on AWS

Medium — 50 to 250 GB working set across a three-shard Valkey Cluster

Monthly cost

$1,252.70

Annual cost

$15,032/year

Line-item breakdown

Compute $1,158.95
Storage $93.75
Other $0.00
Arm64 option (AWS Graviton (C7g/M8g/R8g)) $1,125.85/mo

Saves $126.84/mo (10%) across r8g.2xlarge.

Components provisioned

Role Instance vCPU GB RAM Storage
Primary Shard 3 × r7i.2xlarge 8 64 250 GB nvme

Why this sizing

This Valkey cluster-three-shard medium tier configuration supports working sets between 50 and 250 gigabytes across three shards on AWS in us-east-1. The compute component drives the monthly cost at this tier, totaling $1158.95 out of $1252.70 through three r7i.2xlarge instances. High availability is disabled for this deployment, meaning a single node failure causes data loss for that shard. Migrating this identical architecture to Google Cloud requires re-evaluating equivalent instance sizing and regional networking pricing.

Export

Share the current URL or copy the AWS Terraform / OpenTofu baseline.

Open generic AWS calculator
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 = "valkey-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 = "valkey-subnet-${count.index + 1}"
  }
}

# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "primary_shard_1" {
  count                       = 3
  ami                         = data.aws_ami.debian_12_x86.id
  instance_type               = "r7i.2xlarge"
  subnet_id                   = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
  associate_public_ip_address = true

  root_block_device {
    volume_type = "gp3"
    volume_size = 50
    encrypted   = true
  }

  tags = {
    Name = "valkey-primary-shard-1-${count.index + 1}"
    App  = "valkey"
    Role = "primary-shard"
  }
}

resource "aws_ebs_volume" "primary_shard_1_data" {
  count             = 3
  availability_zone = local.azs[count.index % length(local.azs)]
  size              = 250
  type              = "gp3"
  encrypted         = true

  tags = {
    Name = "valkey-primary-shard-1-data-${count.index + 1}"
    App  = "valkey"
    Role = "primary-shard"
  }
}

resource "aws_volume_attachment" "primary_shard_1_attach" {
  count       = 3
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.primary_shard_1_data[count.index].id
  instance_id = aws_instance.primary_shard_1[count.index].id
}

Related views

Sources

Reference architecture: Valkey for cluster-three-shard, version Valkey 9.x Cluster & Sentinel deployment guidance, retrieved November 11, 2026.

https://valkey.io/topics/cluster-tutorial/

Pricing: AWS pricing snapshot, retrieved November 22, 2026.

Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.

Not included in this estimate

  • Vendor licensing and support
  • Professional services
  • Network egress
  • Compliance controls
  • Backup storage
  • Monitoring

Based on Valkey Cluster and Sentinel topology documentation paired with standard 1:8 memory-optimized shard sizing.

Estimate excludes client-side proxy pools, cross-region replication, RDB snapshot buckets, and cross-AZ replication bandwidth charges.

Related workloads on AWS