CloudEstimate

Size Consul on AWS

Medium — 500 to 5,000 registered services with ingress and mesh gateways

Monthly cost

$718.26

Annual cost

$8,619/year

Line-item breakdown

Compute $662.26
Storage $56.00
Other $0.00
Arm64 option (AWS Graviton (C7g/M8g/R8g)) $645.72/mo

Saves $72.53/mo (10%) across m8g.large.

Components provisioned

Role Instance vCPU GB RAM Storage
Server 5 × m7i.large 2 8 100 GB ssd
Ingress Gateway 2 × m7i.large 2 8 50 GB ssd
Mesh Gateway 2 × m7i.large 2 8 50 GB ssd

Why this sizing

This Consul five-server-medium reference architecture on AWS supports workloads ranging from 500 to 5000 registered services with ingress and mesh gateways. Compute drives the monthly cost at this tier, totaling $662.26 across nine m7i.large instances. Maintaining a five-server topology guarantees high availability and consensus quorum, though network latency between availability zones requires careful monitoring during peak replication phases.

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

# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "server_1" {
  count                       = 5
  ami                         = data.aws_ami.debian_12_x86.id
  instance_type               = "m7i.large"
  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 = "consul-server-1-${count.index + 1}"
    App  = "consul"
    Role = "server"
  }
}

resource "aws_ebs_volume" "server_1_data" {
  count             = 5
  availability_zone = local.azs[count.index % length(local.azs)]
  size              = 100
  type              = "gp3"
  encrypted         = true

  tags = {
    Name = "consul-server-1-data-${count.index + 1}"
    App  = "consul"
    Role = "server"
  }
}

resource "aws_volume_attachment" "server_1_attach" {
  count       = 5
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.server_1_data[count.index].id
  instance_id = aws_instance.server_1[count.index].id
}

resource "aws_instance" "ingress_gateway_2" {
  count                       = 2
  ami                         = data.aws_ami.debian_12_x86.id
  instance_type               = "m7i.large"
  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 = "consul-ingress-gateway-2-${count.index + 1}"
    App  = "consul"
    Role = "ingress-gateway"
  }
}

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

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

resource "aws_volume_attachment" "ingress_gateway_2_attach" {
  count       = 2
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.ingress_gateway_2_data[count.index].id
  instance_id = aws_instance.ingress_gateway_2[count.index].id
}

resource "aws_instance" "mesh_gateway_3" {
  count                       = 2
  ami                         = data.aws_ami.debian_12_x86.id
  instance_type               = "m7i.large"
  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 = "consul-mesh-gateway-3-${count.index + 1}"
    App  = "consul"
    Role = "mesh-gateway"
  }
}

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

  tags = {
    Name = "consul-mesh-gateway-3-data-${count.index + 1}"
    App  = "consul"
    Role = "mesh-gateway"
  }
}

resource "aws_volume_attachment" "mesh_gateway_3_attach" {
  count       = 2
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.mesh_gateway_3_data[count.index].id
  instance_id = aws_instance.mesh_gateway_3[count.index].id
}

Related views

Sources

Reference architecture: Consul for five-server-medium, version Consul current production architecture guidance, retrieved April 13, 2026.

https://developer.hashicorp.com/consul/docs/architecture

Pricing: AWS pricing snapshot, retrieved November 29, 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 Consul production architecture guidance and translated into VM-based planning tiers.

Estimate excludes application workload nodes, external L7 gateways, network transfer, and any HCP-managed alternatives.

Related workloads on AWS