Published
Bedrock Knowledge Base Costs: OpenSearch Serverless OCUs vs Aurora pgvector
Compare classic and NextGen OpenSearch capacity with Aurora pgvector, then stage a Bedrock knowledge-base migration with retrieval and rollback checks.
A quiet RAG application can still have an expensive vector store. Before replacing it, determine which OpenSearch Serverless collection generation, redundancy setting and capacity-sharing arrangement you actually have. An idle bill is a property of that configuration, not a universal Bedrock minimum.
Price the collection you operate
AWS documents separate classic and NextGen scaling behavior. NextGen can scale indexing and search to zero after ten minutes of inactivity; classic minimums depend on redundancy and sharing. Verify that your selected Bedrock integration supports the collection type, generation and Region before treating a different generation as a drop-in replacement.
The OpenSearch pricing examples use $0.24 per OCU-hour for specified US East scenarios. At that illustrative rate, two continuously billed OCUs over 730 hours cost $350.40; four cost $700.80, before storage and other charges. These are arithmetic examples, not a quote for every collection or a prediction of idle NextGen spend. Read the actual hourly capacity and billed usage instead of multiplying a remembered minimum.
| Cost input | OpenSearch option | Aurora option |
|---|---|---|
| Compute | Billed indexing and search OCU-hours, including shared capacity allocation | Billed ACU-hours or instance-hours |
| Persistence | Vector/index storage and snapshots where applicable | Database storage, backups and chosen I/O model |
| Activity | Indexing, query concurrency, memory pressure and scale-down behavior | Ingestion, vector queries, connection activity and pause eligibility |
| Integration | Supported collection and access policies | Supported Aurora PostgreSQL version, Data API and secret |
| Operations | Retrieval tuning, capacity limits and on-call ownership | Database maintenance, indexing, connections and restore tests |
Model both a quiet month and a sustained load month. Aurora Serverless v2 is not automatically free when requests stop: supported engine versions and pause settings matter, connections can prevent pause, and storage remains billable. Include embedding/re-embedding, model calls, NAT, secrets, KMS, migration overlap and engineer time. Other supported stores, including S3 Vectors where applicable, can belong in the comparison.
Stage the native Aurora integration in Terraform
Bedrock’s native Aurora vector-store integration requires supported Aurora PostgreSQL, pgvector, the RDS Data API and database credentials in Secrets Manager. An arbitrary RDS PostgreSQL instance with pgvector is not the same integration.
This is a storage block to incorporate into a reviewed aws_bedrockagent_knowledge_base resource, not a complete deployable stack. The database, table, embedding dimensions, execution role and least-privilege access must already match. The provider reference defines these field names; pin the provider and validate the entire plan in your own version.
storage_configuration {
type = "RDS"
rds_configuration {
resource_arn = var.aurora_cluster_arn
credentials_secret_arn = var.database_secret_arn
database_name = "knowledge"
table_name = "bedrock_integration.chunks"
field_mapping {
primary_key_field = "id"
vector_field = "embedding"
text_field = "chunks"
metadata_field = "metadata"
}
}
}
Keep credentials out of Terraform outputs, plans shared for review and article examples. Confirm the table’s vector dimension against the chosen embedding model before ingesting. A successful Terraform plan proves configuration syntax, not usable retrieval.
Migrate through a second knowledge base
Create a parallel target rather than replacing storage beneath the production identifier. Ingest a bounded, approved corpus using the same chunking and embedding choices. Record source-document counts, failed ingestion jobs, duplicate chunks and deletions. Use a fixed query set with expected citations to compare recall, access isolation, latency and answer grounding. Include unauthorized-document and empty-result cases; average latency alone misses a confidentiality regression.
Route a small approved caller population to the new knowledge-base identifier. Keep the old store available for rollback and account for the overlap bill. Move production only when the owner accepts the measured retrieval and cost results. Remove old resources after the rollback window and retention review, not immediately after the first green query.
Acceptance and commercial handoff
A useful decision record contains both invoices, the model inputs, retrieval fixtures, a failed-ingestion example, the switch-back procedure and a named operating owner. Do not promise 75–85% savings from a database label. A low-volume service with an old classic floor and a high-throughput service with a tuned shared store can reach opposite conclusions.
For the model-serving portion of the bill, use the Bedrock versus vLLM cost model. The 14-Day Datadog & Telemetry Cost Audit costs $3,500 within its published account and source limits; agree the vector-store scenario and retrieval acceptance set during scoping.
Frequently asked questions
Does every Bedrock vector store cost $700 per month at idle?
No. Collection generation, redundancy, sharing, Region and actual capacity matter. NextGen supports scale-to-zero; classic floor arithmetic must be scoped to the deployed configuration.
Can any RDS pgvector database replace the native Bedrock store?
No. The native Aurora integration has engine, extension, Data API, schema and credential prerequisites. Confirm the supported integration before planning a migration.
Will Aurora always be cheaper?
No. Compare measured compute, storage, I/O, ingestion, query performance, overlap and operating effort with matched retrieval requirements.
Continue reading
- Bedrock in FedRAMP and NIST 800-53 Environments: Guardrails and Audit Evidence
Map Bedrock network, identity, Guardrails and logging evidence to owned NIST controls, with authorized-scope checks and negative fixtures.
- Bedrock Model Invocation Logging: Direct S3, Athena and CloudWatch Cost Boundaries
Use a reviewed S3-only Bedrock invocation-log route, verify endpoint coverage and build an auditable Athena pipeline without assuming universal CloudWatch rates.
- Bedrock Provisioned Throughput vs On-Demand vs EKS vLLM: An Auditable Cost Model
Calculate break-even from measured token categories, usable serving capacity and operating costs, then reconcile Bedrock spend using trusted IAM principal tags.
Written by
Tymur Chmeruk
Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]