Skip to content

Feature: spawn snapshot export — file-level EBS/snapshot → S3 (the inverse of snapshot create) #179

Open

Description

@scttfrdmn

The asymmetry

spawn snapshot create --from s3://… gives a clean, instance-free, file-level S3 → EBS path (build an ext4 image from a dir/tarball, push via EBS direct APIs). There's no inverse: getting files back out of an EBS volume/snapshot into S3 as objects has no convenience.

The EBS direct read APIs (GetSnapshotBlock/ListSnapshotBlocks) only return raw 512 KiB blocks — to recover files you'd have to reconstruct the ext4 filesystem yourself. So today the only file-level options are:

  1. EBS → FSx-for-Lustre → S3 (FSx export) — works, but heavy: provisioning a whole FSx filesystem and a two-hop EBS → FSx → S3 just to copy files out is a lot of moving parts for "publish these files."
  2. mount + aws s3 sync on an instance — simple and direct (s3 sync(EBS) → S3), but you hand-roll the attach/mount/sync/cleanup every time.

Request

A first-class inverse of snapshot create that does the mount + sync for you:

# from a snapshot (creates a temp volume, mounts ro, syncs files out, cleans up):
spawn snapshot export snap-xxxx --to s3://bucket/prefix/

# or from a live attached volume / path on the current instance:
spawn volume export /mnt/results --to s3://bucket/prefix/

Semantics: attach (if needed) → mount read-only → aws s3 sync <mount> s3://… → unmount/detach/cleanup. File-level objects in S3 (listable, addressable), not a block blob. Mirrors snapshot create's "no FSx, minimal ceremony" feel — the direct s3 sync(EBS) → S3 path, packaged.

This is lighter than FSx for the common "I have files on a volume/snapshot, publish them to a bucket" case (FSx stays the right tool for ongoing bidirectional sync or POSIX-at-scale; this is one-shot export).

Relationship to the lifecycle hook

--pre-stop "aws s3 sync /results s3://…" already covers "sync a path out before the instance dies" for a running spore — and that's the right tool mid-workflow. This FR is for the standalone / after-the-fact case: export an existing snapshot or a volume's files without standing up a workload around it (e.g. recover/publish a reference dataset, or round-trip snapshot create ↔ snapshot export).

Context

From the aws-microbiome-demo work, where spawn snapshot create (S3→EBS) is now central to the reference-data-on-volumes pattern. The reverse direction keeps coming up (publish results/derived data off a volume) and FSx is too heavy a detour for it. spawn 0.51.x.

Activity

  1. added
    enhancement
    on Jun 15, 2026
  2. added this to the Later milestone on Oct 19, 2026
  3. modified the milestones: Later, Post-1.0 on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions