Keycloak
Self-managed Keycloak for identity, authentication, SSO, and federation across internal and customer-facing apps.
Medium — regional production Vault or OpenBao cluster with moderate dynamic lease churn
Monthly cost
$1,627.93
Annual cost
$19,535/year
| Compute | $1,471.68 |
| Storage | $156.25 |
| Other | $0.00 |
Saves $161.18/mo (10%) across m8g.2xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Vault Server | 5 × m7i.2xlarge | 8 | 32 | 250 GB nvme |
This sizing configuration fits a regional production HashiCorp Vault or OpenBao cluster with moderate dynamic lease churn running on AWS in us-east-1. The primary cost driver is the m7i.2xlarge compute tier, totaling fourteen hundred seventy-one dollars and sixty-eight cents monthly across five nodes. High availability is disabled, creating a single point of failure that requires strict external failover automation for operational resilience.
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 = "vault-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 = "vault-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "vault_server_1" {
count = 5
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 = "vault-vault-server-1-${count.index + 1}"
App = "vault"
Role = "vault-server"
}
}
resource "aws_ebs_volume" "vault_server_1_data" {
count = 5
availability_zone = local.azs[count.index % length(local.azs)]
size = 250
type = "gp3"
encrypted = true
tags = {
Name = "vault-vault-server-1-data-${count.index + 1}"
App = "vault"
Role = "vault-server"
}
}
resource "aws_volume_attachment" "vault_server_1_attach" {
count = 5
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.vault_server_1_data[count.index].id
instance_id = aws_instance.vault_server_1[count.index].id
}
Reference architecture: HashiCorp Vault / OpenBao for raft-five-node-standard, version Vault / OpenBao Integrated Storage (Raft) reference architecture, retrieved November 11, 2026.
https://developer.hashicorp.com/vault/tutorials/day-one-raft/raft-reference-architecture
Pricing: AWS pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on HashiCorp's published Integrated Storage (Raft) reference architecture (3- and 5-voter topologies).
Estimate excludes Vault Enterprise licensing, cloud KMS auto-unseal API calls, HSM appliances, and SIEM audit log storage.
Self-managed Keycloak for identity, authentication, SSO, and federation across internal and customer-facing apps.
Self-hosted Teleport for infrastructure identity, privileged access, Kubernetes access, and audited remote sessions.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.