You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements lifecycle: durable from #193 — a named FSx that outlives any single instance and is mounted by many launches.
Why standalone (and why blocking-wait is fine here)
Durable FSx is a deliberate human action ("I want standing scratch for this project"), not a reaction in a hot path — so a blocking create-and-wait is acceptable (unlike the ephemeral/lagotto path, #194). It amortizes the ~10-min create cost across many jobs, and the S3 import/export DRA earns its keep (warm reference data stays hot, outputs continuously mirror).
Surface
The fsx command group has list/info/delete but no create today — creation is only bolted onto spawn launch --fsx-create. Add the missing standalone primitive:
spawn fsx create --name prospecting --s3-bucket aws-buckai \
--export s3://aws-buckai/.../detections/ --ttl 30d
# → creates, waits for AVAILABLE, sets up the DRA, tags:# spawn:managed=true, spawn:fsx-name=prospecting,# spawn:ttl-deadline=<now+ttl>, spawn:fsx-created=<ts>
--ttl is required (per #193: no death-clock-less durable FS). Reuses the existing CreateFSxLustreFilesystem (pkg/aws/fsx.go) — mostly a cobra subcommand + deadline tagging.
Then jobs mount it by name (fast): fsx: { name: prospecting } in a spawn-config / --fsx-name prospecting, which resolves the name → fs-id and mounts (existing path). The mount writes the spawn:fsx-id lease so the refcount reaper (#192) won't reclaim it while in use; it's reclaimed only when refcount 0 AND past its TTL.
Blocked by #192 (reaper) and #193 (contract). Lower priority than the ephemeral path — different use case (shared standing storage, not hands-off one-shot).
AZ constraint — mounting a durable FSx pins the launch AZ (must be surfaced)
FSx Lustre is single-AZ and a Lustre mount is same-AZ only, so an instance mounting a durable fs-X MUST launch in fs-X's AZ. This is the real (capacity, not dollar) cost of the durable path, and it's load-bearing for lagotto:
Resolving --fsx-name/fsx.name (or --fsx-id) to a filesystem also resolves its AZ, and the launch is constrained to that AZ (filter the candidate subnet/AZ to the FSx's).
Activity
scttfrdmn commentedon Jun 16, 2026
AZ constraint — mounting a durable FSx pins the launch AZ (must be surfaced)
FSx Lustre is single-AZ and a Lustre mount is same-AZ only, so an instance mounting a durable
fs-XMUST launch infs-X's AZ. This is the real (capacity, not dollar) cost of the durable path, and it's load-bearing for lagotto:name/idis AZ-pinned to that filesystem's AZ. lagotto's spawn launch fails with "failed to parse JSON" when stdin is a pipe (non-interactive) #34 AZ-fallback breadth collapses to that single AZ — if it has no capacity, the watch waits, by design.Required behavior
--fsx-name/fsx.name(or--fsx-id) to a filesystem also resolves its AZ, and the launch is constrained to that AZ (filter the candidate subnet/AZ to the FSx's).fs-X(AZa) but also requests a conflicting AZb— a contradiction that would otherwise silently fail to mount. (Same fail-closed spirit as the FSx auto-create: explicit lifecycle contract (ephemeral|durable), fail-closed, + canonical docs #193 lifecycle contract.)<az>(mountsfs-X)" so the capacity-breadth tradeoff is explicit, not a silent loss of spawn launch fails with "failed to parse JSON" when stdin is a pipe (non-interactive) #34 fallback.feat(fsx): explicit fail-closed lifecycle contract for --fsx-create (#…
feat(launcher): ephemeral async FSx-create in Provision (#202) (#203)