CloudEstimate

Size GitLab Self-Managed on AWS

Medium — 2,000 to 5,000 users (100 RPS)

Monthly cost

$2,856.82

Annual cost

$34,282/year

Line-item breakdown

Compute $2,198.32
Storage $658.50
Other $0.00
Arm64 option (AWS Graviton (C7g/M8g/R8g)) $2,554.98/mo

Saves $301.84/mo (11%) across c7g.2xlarge, m8g.xlarge, m8g.2xlarge, r8g.2xlarge.

Components provisioned

Role Instance vCPU GB RAM Storage
Webservice 3 × c7i.2xlarge 8 16 100 GB ssd
Sidekiq 2 × m7i.xlarge 4 16 100 GB ssd
Gitaly 2 × m7i.2xlarge 8 32 2 TB nvme
Database 1 × r7i.2xlarge 8 64 1 TB ssd
Cache 1 × m7i.xlarge 4 16 50 GB ssd
Object Storage 1 × object-bucket — — 1.5 TB object

Why this sizing

This GitLab Self-Managed deployment on AWS supports a workload scale of 2,000 to 5,000 users at 100 requests per second. The primary cost driver at this tier is compute, totaling $2,198.32 monthly across nine provisioned instances. High availability is disabled across all nodes, meaning a single component failure will cause service disruption. Data storage relies on 1,500 gigabytes of cloud object storage and dedicated NVMe disks.

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

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

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

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

resource "aws_volume_attachment" "webservice_1_attach" {
  count       = 3
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.webservice_1_data[count.index].id
  instance_id = aws_instance.webservice_1[count.index].id
}

resource "aws_instance" "sidekiq_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 = "gitlab-sidekiq-2-${count.index + 1}"
    App  = "gitlab"
    Role = "sidekiq"
  }
}

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

  tags = {
    Name = "gitlab-sidekiq-2-data-${count.index + 1}"
    App  = "gitlab"
    Role = "sidekiq"
  }
}

resource "aws_volume_attachment" "sidekiq_2_attach" {
  count       = 2
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.sidekiq_2_data[count.index].id
  instance_id = aws_instance.sidekiq_2[count.index].id
}

resource "aws_instance" "gitaly_3" {
  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 = false

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

  tags = {
    Name = "gitlab-gitaly-3-${count.index + 1}"
    App  = "gitlab"
    Role = "gitaly"
  }
}

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

  tags = {
    Name = "gitlab-gitaly-3-data-${count.index + 1}"
    App  = "gitlab"
    Role = "gitaly"
  }
}

resource "aws_volume_attachment" "gitaly_3_attach" {
  count       = 2
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.gitaly_3_data[count.index].id
  instance_id = aws_instance.gitaly_3[count.index].id
}

resource "aws_instance" "database_4" {
  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 = "gitlab-database-4-${count.index + 1}"
    App  = "gitlab"
    Role = "database"
  }
}

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

  tags = {
    Name = "gitlab-database-4-data-${count.index + 1}"
    App  = "gitlab"
    Role = "database"
  }
}

resource "aws_volume_attachment" "database_4_attach" {
  count       = 1
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.database_4_data[count.index].id
  instance_id = aws_instance.database_4[count.index].id
}

resource "aws_instance" "cache_5" {
  count                       = 1
  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 = "gitlab-cache-5-${count.index + 1}"
    App  = "gitlab"
    Role = "cache"
  }
}

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

  tags = {
    Name = "gitlab-cache-5-data-${count.index + 1}"
    App  = "gitlab"
    Role = "cache"
  }
}

resource "aws_volume_attachment" "cache_5_attach" {
  count       = 1
  device_name = "/dev/sdf"
  volume_id   = aws_ebs_volume.cache_5_data[count.index].id
  instance_id = aws_instance.cache_5[count.index].id
}

resource "aws_s3_bucket" "object_storage_6" {
  count         = 1
  bucket_prefix = "gitlab-object-storage-6-"

  tags = {
    App         = "gitlab"
    Role        = "object-storage"
    EstimatedGb = "1500"
  }
}

resource "aws_s3_bucket_public_access_block" "object_storage_6_private" {
  count                   = 1
  bucket                  = aws_s3_bucket.object_storage_6[count.index].id
  block_public_acls       = true
  block_public_policy     = true
  ignore_public_acls      = true
  restrict_public_buckets = true
}

Related views

Sources

Reference architecture: GitLab Self-Managed for 5k-users, version GitLab 18.x Reference Architectures, retrieved November 11, 2026.

https://docs.gitlab.com/administration/reference_architectures/

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 GitLab 18.x published reference architectures (1K through 25K users) normalized to VM-backed Linux Package / Hybrid footprints.

Estimate excludes GitLab Ultimate/Premium licensing, CI/CD runner pools, OpenSearch Advanced Search nodes, GitLab Duo AI add-ons, and backup storage.

Related workloads on AWS