CloudEstimate

Size Sonatype Nexus Repository on AWS

Medium — up to 900 requests per second

Monthly cost

$1,389.32

Annual cost

$16,672/year

Line-item breakdown

Compute $1,269.32
Storage $120.00
Other $0.00

Components provisioned

Role Instance vCPU GB RAM Storage
Repository 3 × m7i.2xlarge 8 32 500 GB ssd
Database 1 × r7i.2xlarge 8 64 —

Why this sizing

This medium tier architecture for Sonatype Nexus Repository supports up to 900 requests per second in us-east-1 without high availability enabled. Compute is the primary cost driver at $1269.32 per month, utilizing three m7i.2xlarge repository instances and one r7i.2xlarge database instance. Running on-demand infrastructure on AWS without high availability leaves the deployment vulnerable to single node failures during outages.

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

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

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

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

resource "aws_volume_attachment" "repository_1_attach" {
  count       = 3
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.repository_1_data[count.index].id
  instance_id = aws_instance.repository_1[count.index].id
}

resource "aws_instance" "database_2" {
  count                       = 1
  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 = false

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

  tags = {
    Name = "nexus-repository-database-2-${count.index + 1}"
    App  = "nexus-repository"
    Role = "database"
  }
}

Related views

Sources

Reference architecture: Sonatype Nexus Repository for m, version 3.78+ / cloud-native AWS ref archs updated 2026-04-07, retrieved April 13, 2026.

https://help.sonatype.com/en/sonatype-nexus-repository-reference-architectures.html

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 Sonatype Nexus Repository reference architectures and translated into VM-style planning inputs for multi-cloud estimation.

Estimate excludes external object storage capacity, backup infrastructure, and multi-region disaster recovery.

Related workloads on AWS