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
{{ message }}
Repository navigation
--cost-limit is compute-only, so a launch that provisions storage can exceed its cap by orders of magnitude #616
Split out of #613 because it's a behavioural change, not a wording fix.
The gap
--cost-limit governs compute only — that's stated in its own help text, and it's honest as far as it goes. But the cap is the thing a user reaches for to bound a launch, and a launch can provision storage that dwarfs the compute:
In #613, --cost-limit 2.50 was set on a 75-minute c8g.4xlarge run (--estimate-only said TTL cost: $0.80) that also created a 1200 GiB FSx Lustre — the minimum size, ~$0.145/GiB-month ≈ $174/month. The cap was respected to the letter and the launch still committed ~200× the capped amount in storage. And because the filesystem outlives the instance, the spend continues after everything the cap was watching has gone away.
Ask
Decide deliberately between two coherent positions, rather than leaving the current implicit third one:
Make the cap total — have --cost-limit account for storage spawn provisions (at minimum refusing to launch when the first month of a created filesystem already exceeds the cap, since FSx has a 1200 GiB floor and therefore a hard cost floor). This matches what users believe the flag does.
Option 1 is the better outcome but needs care: storage pricing is regional and per-deployment-type, an ephemeral filesystem's true cost depends on how long it actually lives, and the cap presently has a simple, predictable meaning that's easy to reason about. Option 2 is cheap and honest.
What should not persist is the current state, where a flag named --cost-limit bounds one component of cost while another component — often the larger one — is unbounded and unmentioned.
Fixed in #640 (merged, on main), shipping in v0.116.0.
--cost-limit is now a total rather than compute-only, enforced in the two places it can be:
Up front — a launch whose storage commitment alone exceeds the cap is refused, naming the real monthly figure. Verified against the exact --fsx-lifecycle ephemeral did not reap the filesystem when the instance terminated (1.2 TiB left AVAILABLE and billing) #613 invocation: now exits 1 with ~$174.00/month against a $2.50 cap. --allow-cost-limit-overrun is the explicit opt-out. This is a behaviour change: a small-cap launch with --fsx-create that succeeded before is now rejected — that was the bug, not a regression.
In flight — spored counts EBS toward the cap, priced on wall clock, not compute time. A stopped instance still pays for its volumes and the old arithmetic counted none of it.
On the question of per-category flags: decided against adding --cost-limit-ec2/--cost-limit-storage. A cap that has to be set twice to mean one thing is how the original hole opened, and the total plus an explicit override covers the cases without a second knob to keep in sync.
FSx is deliberately excluded from the in-flight tally — terminating doesn't delete a filesystem, so firing the cap on it would look like enforcement while achieving nothing. That commitment is refused at launch instead; reclaiming what outlives an instance stays the reaper's job (#624/#625).
Activity
feat(cost): --cost-limit covers storage, not just compute (#640)
fix(extend): carry the cost limit along with the TTL (#641)
scttfrdmn commentedon Oct 3, 2026
Fixed in #640 (merged, on
main), shipping in v0.116.0.--cost-limitis now a total rather than compute-only, enforced in the two places it can be:~$174.00/monthagainst a $2.50 cap.--allow-cost-limit-overrunis the explicit opt-out. This is a behaviour change: a small-cap launch with--fsx-createthat succeeded before is now rejected — that was the bug, not a regression.sporedcounts EBS toward the cap, priced on wall clock, not compute time. A stopped instance still pays for its volumes and the old arithmetic counted none of it.On the question of per-category flags: decided against adding
--cost-limit-ec2/--cost-limit-storage. A cap that has to be set twice to mean one thing is how the original hole opened, and the total plus an explicit override covers the cases without a second knob to keep in sync.FSx is deliberately excluded from the in-flight tally — terminating doesn't delete a filesystem, so firing the cap on it would look like enforcement while achieving nothing. That commitment is refused at launch instead; reclaiming what outlives an instance stays the reaper's job (#624/#625).
chore(release): v0.116.0