JFrog Artifactory Self-Hosted
Self-hosted JFrog Artifactory for binary repositories, release promotion, and software supply chain distribution.
Medium — organization registry with concurrent CI/CD pulls, Trivy scanning, and 5 TB OCI blobs
Monthly cost
$1,367.75
Annual cost
$16,413/year
| Compute | $1,172.75 |
| Storage | $195.00 |
| Other | $0.00 |
Saves $128.42/mo (9%) across m8g.2xlarge, m8g.xlarge, r8g.xlarge, r8g.large.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Harbor Core Jobservice | 2 × m7i.2xlarge | 8 | 32 | 200 GB ssd |
| Trivy Scanner | 2 × m7i.xlarge | 4 | 16 | 150 GB ssd |
| Database | 1 × r7i.xlarge | 4 | 32 | 250 GB ssd |
| Cache | 1 × r7i.large | 2 | 16 | 50 GB ssd |
| Object Storage | 1 × object-bucket | — | — | 5 TB object |
This medium AWS architecture supports an organization registry running concurrent CI/CD pulls, Trivy scanning, and five terabytes of OCI blobs. The primary cost driver is compute at $1172.75 per month, led by the m7i.2xlarge instances powering harbor-core-jobservice. High availability is disabled in this configuration, meaning a single node failure causes service downtime until recovery.
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 = "harbor-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 = "harbor-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "harbor_core_jobservice_1" {
count = 2
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 = "harbor-harbor-core-jobservice-1-${count.index + 1}"
App = "harbor"
Role = "harbor-core-jobservice"
}
}
resource "aws_ebs_volume" "harbor_core_jobservice_1_data" {
count = 2
availability_zone = local.azs[count.index % length(local.azs)]
size = 200
type = "gp3"
encrypted = true
tags = {
Name = "harbor-harbor-core-jobservice-1-data-${count.index + 1}"
App = "harbor"
Role = "harbor-core-jobservice"
}
}
resource "aws_volume_attachment" "harbor_core_jobservice_1_attach" {
count = 2
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.harbor_core_jobservice_1_data[count.index].id
instance_id = aws_instance.harbor_core_jobservice_1[count.index].id
}
resource "aws_instance" "trivy_scanner_2" {
count = 2
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.xlarge"
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 = "harbor-trivy-scanner-2-${count.index + 1}"
App = "harbor"
Role = "trivy-scanner"
}
}
resource "aws_ebs_volume" "trivy_scanner_2_data" {
count = 2
availability_zone = local.azs[count.index % length(local.azs)]
size = 150
type = "gp3"
encrypted = true
tags = {
Name = "harbor-trivy-scanner-2-data-${count.index + 1}"
App = "harbor"
Role = "trivy-scanner"
}
}
resource "aws_volume_attachment" "trivy_scanner_2_attach" {
count = 2
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.trivy_scanner_2_data[count.index].id
instance_id = aws_instance.trivy_scanner_2[count.index].id
}
resource "aws_instance" "database_3" {
count = 1
ami = data.aws_ami.debian_12_x86.id
instance_type = "r7i.xlarge"
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 = "harbor-database-3-${count.index + 1}"
App = "harbor"
Role = "database"
}
}
resource "aws_ebs_volume" "database_3_data" {
count = 1
availability_zone = local.azs[count.index % length(local.azs)]
size = 250
type = "gp3"
encrypted = true
tags = {
Name = "harbor-database-3-data-${count.index + 1}"
App = "harbor"
Role = "database"
}
}
resource "aws_volume_attachment" "database_3_attach" {
count = 1
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.database_3_data[count.index].id
instance_id = aws_instance.database_3[count.index].id
}
resource "aws_instance" "cache_4" {
count = 1
ami = data.aws_ami.debian_12_x86.id
instance_type = "r7i.large"
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 = "harbor-cache-4-${count.index + 1}"
App = "harbor"
Role = "cache"
}
}
resource "aws_ebs_volume" "cache_4_data" {
count = 1
availability_zone = local.azs[count.index % length(local.azs)]
size = 50
type = "gp3"
encrypted = true
tags = {
Name = "harbor-cache-4-data-${count.index + 1}"
App = "harbor"
Role = "cache"
}
}
resource "aws_volume_attachment" "cache_4_attach" {
count = 1
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.cache_4_data[count.index].id
instance_id = aws_instance.cache_4[count.index].id
}
resource "aws_s3_bucket" "object_storage_5" {
count = 1
bucket_prefix = "harbor-object-storage-5-"
tags = {
App = "harbor"
Role = "object-storage"
EstimatedGb = "5000"
}
}
resource "aws_s3_bucket_public_access_block" "object_storage_5_private" {
count = 1
bucket = aws_s3_bucket.object_storage_5[count.index].id
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}
Reference architecture: Harbor Registry for decoupled-ha-ready, version Harbor 2.12+ installation prerequisites & HA architecture, retrieved November 11, 2026.
https://goharbor.io/docs/latest/install-config/installation-prereqs/
Pricing: AWS pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Harbor hardware prerequisites and HA Helm architecture separating Harbor Core/Registry, Trivy scanners, PostgreSQL, Valkey/Redis, and cloud object storage.
Estimate excludes cross-region replication egress, CDN layer caching, and P2P Dragonfly/Kraken node agents.
Self-hosted JFrog Artifactory for binary repositories, release promotion, and software supply chain distribution.
Self-managed Sonatype Nexus Repository for package hosting, caching, and binary distribution across development pipelines.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.