Skip to content

spawn status should list every billable resource spawn provisioned, not just the instance (FSx, EFS, EBS) #615

Closed

Description

@scttfrdmn

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 is ephemeral but 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-limit does 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

Activity

  1. scttfrdmn commented on Oct 3, 2026

    @scttfrdmn
    ContributorAuthor

    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.go is on main: spawn status now 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:

    Still open and deliberately separate: #613, the ephemeral FSx filesystem that wasn't actually reaped. Listing a filesystem in spawn status and deleting it when the instance dies are different problems — spored cannot delete a filesystem it dies alongside, which is why that one belongs to the reaper (#624/#625).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions