Adam Moussa
|
aff38a11ae
|
feat(infra): migrate Bedrock KB vector store to Aurora pgvector (#125)
Deploy / Deploy to AWS (push) Has been cancelled
Replaces OpenSearch Serverless with Aurora PostgreSQL Serverless v2 + pgvector as
the Bedrock Knowledge Base vector store (v1 PR3). Bedrock KB requires Aurora SSv2
(RDS Data API), not a plain RDS instance — so the DB engine moves to Aurora.
- foundation: rds.DatabaseInstance (PG15) -> rds.DatabaseCluster Aurora SSv2
(0.5-4 ACU, enableDataApi). RDS alarms: free-storage -> freeable-memory.
- compute: delete all AOSS (collection, policies, VPC endpoint, index-creator);
add bedrock_user secret + KB role (scoped rds-data + secret read); repoint
CfnKnowledgeBase to RDS storage (bedrock_integration.bedrock_kb, vector(1024)).
- lambdas: oss-index-creator -> aurora-pgvector-init (bootstrap schema/table/
indexes/role via RDS Data API; transient-error retry; password guard).
- ADR 0001 documents the decision.
Eliminates the ~$175-350/mo AOSS OCU floor. NAT kept (egress still needed).
GPT-4.1 cross-review: no BLOCK (FIX applied). tsc clean; foundation synth shows
Aurora cluster with Data API enabled; 23 pytest pass.
|
2026-06-12 18:44:42 -04:00 |
|