Build a Searchable Archive in Customer-Owned AWS
Organizations frequently keep 15-year-old servers running for one reason: legal, clinical, or financial teams still need to look up historical records a few times a month. Paying annual maintenance and carrying unpatched operating system risk solely for read-only lookups is avoidable when you move those records into a searchable archive inside your own AWS account.
Worked Synthetic Example: Retiring MedLedger v4
Consider a regional healthcare and billing group retiring MedLedger v4, a 12-year-old on-premises claims and patient billing system holding:
- 420,000 claim summaries (relational tables rendered to PDF/A)
- 1.1 million scanned EOBs, appeal letters, and attachments (native PDF and converted TIFF-to-PDF/A)
- 850 GB total storage, accessed roughly 150 times per month by billing auditors, patient-records staff, and compliance counsel
1. Design the S3 Storage and Retrieval Architecture
Keep metadata hot for instant search while placing binary files in cost-effective S3 storage classes matched to actual retrieval patterns:
| Record Tier | AWS S3 Storage Class | Why It Fits |
|---|---|---|
| Recent records (0–3 years, frequent lookups) | S3 Standard or S3 Intelligent-Tiering | Millisecond retrieval with zero per-retrieval restore delay |
| Infrequent audit lookups (3–7 years) | S3 Glacier Instant Retrieval | Lower storage cost while keeping millisecond retrieval for auditors |
| Long-term statutory archive (7+ years, rare access) | S3 Glacier Flexible Retrieval or Deep Archive | Lowest storage cost; document restore SLA (minutes to hours) and per-GB restore fees in the operational runbook |
Enable S3 Versioning, KMS customer-managed encryption (CMK), and S3 Object Lock (Governance or Compliance mode, plus legal holds where required) on the archive bucket so records cannot be overwritten or prematurely deleted.
2. Define the Searchable Index Fields
Never force users to browse raw S3 prefixes like s3://archive/2018/04/batch-12/. Maintain a dedicated metadata index (for example in DynamoDB and/or OpenSearch, or an AWS-native document repository) exposing the exact fields retrieval teams use:
| Index Field | Example Value | Purpose |
|---|---|---|
source_system | medledger-v4 | Separates retired applications sharing one archive |
record_type | claim-packet / eob-attachment | Filters by document class and applies retention |
business_id | CLM-2019-084219 | Primary lookup key used by auditors and support |
parent_record_id | CLM-2019-084219 | Links attachments and appeal letters to the parent claim |
entity_or_facility | NORTH-CLINIC | Scopes access by business unit or subsidiary |
event_date | 2019-06-14 | Date of service or claim closure (retention trigger) |
retention_until | 2029-06-14 | Calculated disposition eligibility date |
legal_hold | false / HOLD-2026-04 | Blocks disposition and flags litigated records |
sha256 | 9f86d081... | Cryptographic integrity reference from ingestion |
3. Enforce Role-Based Access and Audit Logging
Map legacy security groups to least-privilege IAM / application roles before granting search access:
billing-auditor: Read-only search and download forclaim-packetandeob-attachmentrecords in assigned facilities; denied access tohr-disputeor privileged legal folders.compliance-hold-admin: Permitted to place or release legal holds and export audit logs, with every action recorded in CloudTrail and application audit logs.archive-operator: Infrastructure and ingestion access only, separated from business record approval.
4. Keep Retrieval Fast and Self-Service
Users should be able to search by CLM-2019-084219, view the rendered claim summary, and download every linked attachment in seconds—without filing an IT ticket or waiting for a database restore.
Sources and further reading
- Amazon S3 Storage Classes — Retrieval latency, minimum storage durations, and cost trade-offs
- Amazon S3 Object Lock Overview — WORM immutability, retention modes, and legal holds