CloudEstimate

Size vLLM Inference Server on AWS

Medium — multi-replica GPU serving for 14B to 32B quantized models with prefix caching

Monthly cost

$2,017.15

Annual cost

$24,206/year

Line-item breakdown

Compute $1,888.15
Storage $129.00
Other $0.00

Components provisioned

Role Instance vCPU GB RAM Storage
Inference Worker 2 × g4dn.4xlarge (1× GPU) 16 64 500 GB nvme
Router Gateway 1 × c7i.xlarge 4 8 50 GB ssd

Why this sizing

This medium tier sizing fits multi-replica serving workloads for 14B to 32B quantized models with prefix caching. The g4dn.4xlarge inference-worker instances drive the monthly cost, totaling $2017.14 with compute accounting for $1888.14 and storage $129.00. High availability is disabled in this configuration, meaning a single zone outage causes complete service disruption for incoming requests.

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 = "vllm-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 = "vllm-subnet-${count.index + 1}"
  }
}

# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "inference_worker_1" {
  count                       = 2
  ami                         = data.aws_ami.debian_12_x86.id
  instance_type               = "g4dn.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 = "vllm-inference-worker-1-${count.index + 1}"
    App  = "vllm"
    Role = "inference-worker"
  }
}

resource "aws_ebs_volume" "inference_worker_1_data" {
  count             = 2
  availability_zone = local.azs[count.index % length(local.azs)]
  size              = 500
  type              = "gp3"
  encrypted         = true

  tags = {
    Name = "vllm-inference-worker-1-data-${count.index + 1}"
    App  = "vllm"
    Role = "inference-worker"
  }
}

resource "aws_volume_attachment" "inference_worker_1_attach" {
  count       = 2
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.inference_worker_1_data[count.index].id
  instance_id = aws_instance.inference_worker_1[count.index].id
}

resource "aws_instance" "router_gateway_2" {
  count                       = 1
  ami                         = data.aws_ami.debian_12_x86.id
  instance_type               = "c7i.xlarge"
  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 = "vllm-router-gateway-2-${count.index + 1}"
    App  = "vllm"
    Role = "router-gateway"
  }
}

resource "aws_ebs_volume" "router_gateway_2_data" {
  count             = 1
  availability_zone = local.azs[count.index % length(local.azs)]
  size              = 50
  type              = "gp3"
  encrypted         = true

  tags = {
    Name = "vllm-router-gateway-2-data-${count.index + 1}"
    App  = "vllm"
    Role = "router-gateway"
  }
}

resource "aws_volume_attachment" "router_gateway_2_attach" {
  count       = 1
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.router_gateway_2_data[count.index].id
  instance_id = aws_instance.router_gateway_2[count.index].id
}

Related views

Sources

Reference architecture: vLLM Inference Server for dual-replica-gpu-inference, version vLLM 0.7+ distributed tensor-parallel & replica serving guidance, retrieved November 11, 2026.

https://docs.vllm.ai/en/latest/serving/distributed_serving.html

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 vLLM published tensor-parallel (`--tensor-parallel-size`) and data-parallel replica deployment topologies mapped to widely available cloud inference GPU instances.

Estimate excludes H100/B200 frontier training/prefill clusters, shared model-registry object buckets, and API token-gateway egress charges.

Related workloads on AWS