Repository navigation
Description
Raised while working #613, where a 1.2 TiB ephemeral FSx (~$174/month) was left billing after its instance terminated and nothing in the CLI ever mentioned it.
The gap
spawn can provision several independently-billable things — the instance, its EBS root/data volumes, an FSx Lustre filesystem (--fsx-create), an EFS mount — but spawn status reports the instance. So the user's mental model of "what am I paying for" is built from a view that is structurally incomplete.
That's how #613 happened: the filesystem was the most expensive thing in the launch and the least visible thing in the tooling. --cost-limit is compute-only, --estimate-only didn't mention it, spawn terminate didn't mention it, and spawn status doesn't mention it. Every surface a user would naturally check was silent about the single largest line item.
Ask
If spawn provisioned it and it bills, spawn status should show it. Concretely, for an instance:
- the instance itself (as today) — type, state, TTL, hourly rate
- FSx: filesystem id, storage capacity, lifecycle (
ephemeral/durable), state, and approximate monthly cost — flagged when the filesystem isephemeralbut nothing currently references it (the --fsx-lifecycle ephemeral did not reap the filesystem when the instance terminated (1.2 TiB left AVAILABLE and billing) #613 leak shape, visible at a glance) - EFS: filesystem id / mount target, if spawn set one up
- EBS: attached volumes and sizes — a stopped instance still bills for these, which is its own quiet surprise
- ideally a total, with an explicit note about which components
--cost-limitdoes and does not govern
The -o json form matters as much as the table: a wrapper or a cost script should be able to enumerate everything a launch is responsible for from one call.
Why this framing rather than more flag help
#613's immediate fixes (honest --fsx-lifecycle wording, spawn terminate naming the filesystem, FSx in --estimate-only) each patch one surface. This issue is the general form: one place that answers "what is this launch costing me", covering everything spawn created. Without it, the next independently-billable resource spawn learns to provision will repeat the same invisibility.
Notes
- The tags to key off already exist:
spawn:fsx-id/spawn:fsx-pending(the lease tagslambda/ttl-reaper'sfsxInUseuses),spawn:fsx-lifecycle, andspawn:managed. - Cost figures can be approximate and clearly labelled as such — "a number with a caveat" is far more useful here than silence, which is the status quo.
- Related: --fsx-lifecycle ephemeral did not reap the filesystem when the instance terminated (1.2 TiB left AVAILABLE and billing) #613 (the FSx leak that motivated this).
Activity
feat(status): list every billable resource, not just the instance
feat(status): list every billable resource, not just the instance
feat(status): list every billable resource, not just the instance (#634)
chore(release): v0.114.0
feat(cost): --cost-limit covers storage, not just compute (#640)
scttfrdmn commentedon Oct 3, 2026
Fixed in #634, merged 2026-10-02 and shipped in v0.114.0 — the issue just never got closed, because that PR's body had no closing keyword. Bookkeeping, not an oversight in the fix.
cmd/status_billable.gois onmain:spawn statusnow lists every billable resource spawn provisioned, not just the instance. It reads the resource tags spawn writes at launch —spawn:price-per-hour,spawn:ebs-hourly-cost,spawn:fsx-id/spawn:fsx-pending,spawn:efs-id— so the display cannot disagree with what was actually provisioned.Two later changes built directly on it:
--cost-limitbecame a total rather than compute-only, and the--estimate-onlypreview andspawn statusno longer claim the cap excludes storage; they now state what it can and cannot reclaim, which is the part that didn't change.Still open and deliberately separate: #613, the ephemeral FSx filesystem that wasn't actually reaped. Listing a filesystem in
spawn statusand deleting it when the instance dies are different problems —sporedcannot delete a filesystem it dies alongside, which is why that one belongs to the reaper (#624/#625).