GitLab Self-Managed
Self-managed GitLab 18.x for source control, CI/CD orchestration, package registries, and DevSecOps workflows.
Medium — 150 to 1,000 state transitions per second with split History, Matching, and Frontend services
Monthly cost
$3,069.44
Annual cost
$36,833/year
| Compute | $2,598.44 |
| Storage | $471.00 |
| Other | $0.00 |
Saves $315.14/mo (10%) across m8g.2xlarge, c7g.xlarge, m8g.xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| History Service | 3 × m7i.2xlarge | 8 | 32 | 50 GB ssd |
| Matching Frontend | 3 × c7i.xlarge | 4 | 8 | 50 GB ssd |
| Persistence Db | 3 × m7i.2xlarge | 8 | 32 | 1 TB nvme |
| Visibility Search | 3 × m7i.xlarge | 4 | 16 | 300 GB ssd |
This medium sizing tier fits workloads handling 150 to 1,000 state transitions per second with split History, Matching, and Frontend services. Compute instances drive the monthly cost at this tier, totaling $2598.43 out of the $3069.43 total. High availability is disabled in this deployment, creating a single point of failure across the provisioned nodes.
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 = "temporal-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 = "temporal-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "history_service_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 = "temporal-history-service-1-${count.index + 1}"
App = "temporal"
Role = "history-service"
}
}
resource "aws_ebs_volume" "history_service_1_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 50
type = "gp3"
encrypted = true
tags = {
Name = "temporal-history-service-1-data-${count.index + 1}"
App = "temporal"
Role = "history-service"
}
}
resource "aws_volume_attachment" "history_service_1_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.history_service_1_data[count.index].id
instance_id = aws_instance.history_service_1[count.index].id
}
resource "aws_instance" "matching_frontend_2" {
count = 3
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 = "temporal-matching-frontend-2-${count.index + 1}"
App = "temporal"
Role = "matching-frontend"
}
}
resource "aws_ebs_volume" "matching_frontend_2_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 50
type = "gp3"
encrypted = true
tags = {
Name = "temporal-matching-frontend-2-data-${count.index + 1}"
App = "temporal"
Role = "matching-frontend"
}
}
resource "aws_volume_attachment" "matching_frontend_2_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.matching_frontend_2_data[count.index].id
instance_id = aws_instance.matching_frontend_2[count.index].id
}
resource "aws_instance" "persistence_db_3" {
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 = false
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "temporal-persistence-db-3-${count.index + 1}"
App = "temporal"
Role = "persistence-db"
}
}
resource "aws_ebs_volume" "persistence_db_3_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 1000
type = "gp3"
encrypted = true
tags = {
Name = "temporal-persistence-db-3-data-${count.index + 1}"
App = "temporal"
Role = "persistence-db"
}
}
resource "aws_volume_attachment" "persistence_db_3_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.persistence_db_3_data[count.index].id
instance_id = aws_instance.persistence_db_3[count.index].id
}
resource "aws_instance" "visibility_search_4" {
count = 3
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 = "temporal-visibility-search-4-${count.index + 1}"
App = "temporal"
Role = "visibility-search"
}
}
resource "aws_ebs_volume" "visibility_search_4_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 300
type = "gp3"
encrypted = true
tags = {
Name = "temporal-visibility-search-4-data-${count.index + 1}"
App = "temporal"
Role = "visibility-search"
}
}
resource "aws_volume_attachment" "visibility_search_4_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.visibility_search_4_data[count.index].id
instance_id = aws_instance.visibility_search_4[count.index].id
}
Reference architecture: Temporal Self-Hosted for split-services-medium, version Temporal Server 1.26+ production deployment checklist, retrieved November 11, 2026.
https://docs.temporal.io/self-hosted-guide/Checklist
Pricing: AWS pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Temporal's self-hosted production checklist and split-role scaling guidance (MIT license).
Estimate excludes application SDK worker fleets (which execute user workflow/activity code), archival buckets, and multi-region Namespace replication.
Self-managed GitLab 18.x for source control, CI/CD orchestration, package registries, and DevSecOps workflows.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.
Self-managed ClickHouse columnar OLAP and observability analytics cluster with ClickHouse Keeper coordination.