BUILD JOURNAL · ETERNITE / AWS
Testing Glacier storage for Eternite
An archive should make it easy to find a memory today and trust that the original will still be there years from now. I’ve been exploring how AWS Glacier and Object Lock can help Eternite do both.
Making room for the long term
Eternite is built around the idea that the files behind our memories deserve a lasting home. As an archive grows, keeping every original in the same kind of storage can become expensive. Glacier offered an interesting possibility: keep the originals in lower-cost archive storage while the things people browse, like previews and manifests, remain readily available.
The first design gives each collection a choice for new original-file packs: Instant Retrieval for immediate object access, or Flexible Retrieval and Deep Archive when a longer wait is acceptable. Even with Instant, Eternite still needs to download a pack and extract the requested file. The slower options add an AWS restore step before that can happen.
I wanted this to be an addition to the archive, not a sudden move. Existing packs stay where they are, and a successful upload does not automatically remove the original copy.
From an idea to a recovery test
I started with small synthetic files and built the storage adapter into Eternite’s collection and restore flow. The app records where each new pack lives and tracks delayed restores so a worker can pick up again after a restart. Tests covered retries, unavailable or corrupted downloads, and extracting files whose hashes matched the originals. The delayed restores in those tests were simulated.
Then I tried the real service. Eternite uploaded and restored a synthetic Glacier Instant pack through a private AWS bucket, with matching file hashes. A larger multipart transfer worked too, and anonymous access was rejected. That was the first proof that the archive could make the round trip, not just upload bytes.
The current AWS project’s Free plan denied a Flexible upload; Deep Archive is also restricted on that plan. Those choices remain disabled until they are available and a real delayed restore has been tested. Ordinary Glacier storage is not enabled for real files in the local preview.
Adding a protected copy
Long-term storage raised another question: what if someone needs a copy that cannot be removed before a chosen date? I added an optional Object Lock path for a verified pack and its manifest. The owner chooses a retention period and a protection mode, and Eternite tracks the exact object versions it creates.
I connected that path to a separate private, encrypted bucket and the local Docker preview, using a limited role with temporary credentials. In a synthetic test, the app created a protected pack and manifest on AWS and restored the original bytes from the pack. AWS also rejected an attempt to delete a test object during Governance retention; after a short test-only retention period, the test versions were released and cleaned up.
That test used a local preview and a stub packer, so it does not establish a production recovery path. Object Lock is a retention tool; using it alone does not establish regulatory compliance.
Making recovery independent
The archive has since gained a separate encrypted-original path and an independent recovery tool. In a synthetic application test, Eternite encrypted an original, restored it through a simulated archive service, and recovered the exact original with a separate recovery key after the application key was removed. The test also checked access restrictions, corruption handling, and resumable uploads.
I then took a small synthetic original through the real AWS bucket: encrypted it, stored its ciphertext in Glacier Instant, downloaded it, and recovered matching bytes with a separate recovery key. The test object was removed afterward. That verifies the encryption and recovery code against real storage; it does not yet prove the deployed application, independent backup custody, or a real delayed Deep Archive restore.
What comes next
The next step is to test the encrypted-original path and a real delayed restore on an AWS project that supports Deep Archive, alongside production packing and independent backups. I also want to confirm that the configured access logs arrive, so the archive’s activity can be checked when needed.
Cost matters as much as the technology: storage, requests, retrieval, and early deletion can all affect the bill. The existing $10 monthly AWS budget provides alerts, not a spending cap. For now, the work remains opt-in and test-focused, with existing files left in place.