OpenSearch
Self-managed OpenSearch 3.x (Linux Foundation Apache 2.0) for full-text search, log analytics, and vector search pipelines.
Medium — 100 GB to 1 TB hot data on a dedicated master cluster
Monthly cost
$2,089.04
Annual cost
$25,068/year
| Compute | $1,674.04 |
| Storage | $415.00 |
| Other | $0.00 |
Saves $183.26/mo (9%) across r8g.2xlarge, m8g.large, m8g.xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Data Node | 3 × r7i.2xlarge | 8 | 64 | 1 TB nvme |
| Master Node | 3 × m7i.large | 2 | 8 | 100 GB ssd |
| Coordinating Node | 2 × m7i.xlarge | 4 | 16 | 100 GB ssd |
This architecture fits workloads managing between 100 GB and 1 TB of hot data on Elasticsearch within AWS us-east-1. The r7i.2xlarge data-node compute instances drive the primary monthly cost at 1674.04 dollars out of a total 2089.04 dollars. Administrators must maintain a three-node master quorum to prevent split-brain scenarios during cluster reconfigurations. Migrating this footprint to Google Cloud requires revalidating instance pricing and local storage performance metrics.
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 = "elasticsearch-oss-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 = "elasticsearch-oss-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "data_node_1" {
count = 3
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 = "elasticsearch-oss-data-node-1-${count.index + 1}"
App = "elasticsearch-oss"
Role = "data-node"
}
}
resource "aws_ebs_volume" "data_node_1_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 1000
type = "gp3"
encrypted = true
tags = {
Name = "elasticsearch-oss-data-node-1-data-${count.index + 1}"
App = "elasticsearch-oss"
Role = "data-node"
}
}
resource "aws_volume_attachment" "data_node_1_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.data_node_1_data[count.index].id
instance_id = aws_instance.data_node_1[count.index].id
}
resource "aws_instance" "master_node_2" {
count = 3
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.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 = "elasticsearch-oss-master-node-2-${count.index + 1}"
App = "elasticsearch-oss"
Role = "master-node"
}
}
resource "aws_ebs_volume" "master_node_2_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 100
type = "gp3"
encrypted = true
tags = {
Name = "elasticsearch-oss-master-node-2-data-${count.index + 1}"
App = "elasticsearch-oss"
Role = "master-node"
}
}
resource "aws_volume_attachment" "master_node_2_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.master_node_2_data[count.index].id
instance_id = aws_instance.master_node_2[count.index].id
}
resource "aws_instance" "coordinating_node_3" {
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 = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "elasticsearch-oss-coordinating-node-3-${count.index + 1}"
App = "elasticsearch-oss"
Role = "coordinating-node"
}
}
resource "aws_ebs_volume" "coordinating_node_3_data" {
count = 2
availability_zone = local.azs[count.index % length(local.azs)]
size = 100
type = "gp3"
encrypted = true
tags = {
Name = "elasticsearch-oss-coordinating-node-3-data-${count.index + 1}"
App = "elasticsearch-oss"
Role = "coordinating-node"
}
}
resource "aws_volume_attachment" "coordinating_node_3_attach" {
count = 2
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.coordinating_node_3_data[count.index].id
instance_id = aws_instance.coordinating_node_3[count.index].id
}
Reference architecture: Elasticsearch Self-Managed for dedicated-master-medium, version Elasticsearch 9.x self-managed production settings (AGPLv3 restored in 8.16+), retrieved November 11, 2026.
https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html
Pricing: AWS pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Elastic's published self-managed heap, master quorum, and hot-tier operational guidance.
Estimate excludes Elastic commercial subscriptions, warm/cold/frozen searchable-snapshot tiers, Kibana hosts, ML nodes, and snapshot object storage.
Self-managed OpenSearch 3.x (Linux Foundation Apache 2.0) for full-text search, log analytics, and vector search pipelines.
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.