Repository navigation
Description
Record of the 2026-11-16 cost review, so the closed questions are not
re-investigated. No action required — this is the measurement and the
conclusions.
Month to date: $578.83 (2026-11-01..16, unblended)
| service | MTD | share |
|---|---|---|
| S3 | $231.58 | 40.0% |
| EC2 — Compute | $92.04 | 15.9% |
| EKS | $88.64 | 15.3% |
| RDS | $71.22 | 12.3% |
| EC2 — Other | $63.30 | 10.9% |
| ECR | $8.72 | 1.5% |
| VPC | $6.52 | 1.1% |
| ELB | $4.21 | 0.7% |
| CloudWatch | $3.38 | 0.6% |
| KMS | $3.08 | 0.5% |
| WAF | $2.87 | 0.5% |
| Secrets Manager | $2.57 | 0.4% |
| 11 others | $1.10 | — |
The month is two months, split at Nov 9
Nov 1–8 averaged $50.14/day; Nov 9–15 averaged $23.11/day. The whole
difference is one usage type:
| S3 usage type | MTD |
|---|---|
USE2-DataTransfer-Out-Bytes |
$228.76 |
USE2-Requests-Tier2 |
$2.03 |
| everything else | $0.80 |
That is sccache internet egress, and it ended on the 9th when the cache moved
to Cloudflare R2 (#920). 40% of MTD spend for something that no longer
recurs — so the November invoice reads far worse than the current state.
A second step, upward, on Nov 8–9: ALB $0.55/day, WAF $0.37/day, CloudWatch
$0 → $0.51/day, VPC $0.24 → $0.60/day. That is prod going live, ~+$1.84/day.
NAT Gateway has no lever — three closed paths
$44.09 MTD (~$84/month: $64 hours + $20 bytes) is the largest non-workload line
item, and it is not reducible:
- Hours are at the floor. Two gateways, one per VPC, not per-AZ. Both VPCs
carry live workloads — prod serves 500–7,200 requests/day — so there is
nothing to consolidate. - The free endpoint is already installed. S3 Gateway endpoints exist in
both VPCs (vpce-02977377f36bcbe24,vpce-0126d951116621756) and are
associated with both the public and private route tables, so lake traffic and
ECR layer pulls already bypass NAT. - Interface endpoints are net-negative, as
modules/network/main.tf's
header already documents: two ECR services x 3 AZs at $0.01/hr ≈ $43/month to
shave part of $20/month of NAT bytes.
The only genuine reduction would be swapping dev's gateway for a t4g.nano NAT
instance (~$29/month), which introduces a hand-patched SPOF into a design that
otherwise manages no nodes. Recommended against.
Already tuned — do not re-propose
- dev app NodePool is
["spot","on-demand"]; prod app is on-demand-only with a
written reason (single replica, so spot reclaim is an outage not a reschedule) - dev Aurora
min_capacityis0.0and auto-pauses; prod keeps a 0.5 warm floor - S3 gateway endpoints present and correctly associated in both VPCs
Two findings worth keeping
describe-instances reports 0 running instances while BoxUsage charges
282 hours of c6g.large and 155 of m6a.large over six days. EKS Auto Mode
nodes live in AWS's own account, so neither they nor their root volumes appear
in any describe-* call. This is why describe-volumes sees 60 GiB against an
EBS charge implying ~380 GB. (Already recorded for describe-instances; the
volume half is new.)
60 GiB of gp3 is detached but probably not garbage. vol-019a2ec8004a2a8ab
(50 GiB, rustdev/data-er-postgres-0, created 2026-10-14) and
vol-0e0090b9dc60eb7d5 (10 GiB, duckfleet-dev/data-duckfleet-postgres-0,
created 2026-11-10). The StorageClass is reclaimPolicy: Delete, so detached
with the PV gone would have deleted them — meaning the PVCs are most likely
still bound and the namespaces idle-suspended. That is a developer's Postgres
data and DuckFleet's, worth ~$4.80/month. Confirm with kubectl before any
cleanup.
Activity
athvin commentedon Nov 17, 2026
The detached-volume question is resolved, and it splits
Checked with
kubectlagainster-dev(needed theer-platformSSO profile;PlatformReadOnlycannot reach the cluster). Both PVCs areBound— soneither volume is loose garbage — but the two differ in the way that matters:
vol-0e0090b9dc60eb7d5(10 GiB)duckfleet-dev/data-duckfleet-postgres-0duckfleet-postgresexists atreplicas: 0— deliberately suspended, data intentionally retained. $0.80/month.vol-019a2ec8004a2a8ab(50 GiB)rustdev/data-er-postgres-0rustdevat all, soer-postgreswas deleted and itsvolumeClaimTemplatesPVC outlived it. Nothing mounts it. ~$4.00/month.The discriminator is whether the StatefulSet still exists, not whether the
volume is attached. Both looked identical from
describe-volumes. The originalreasoning on this ticket — that
reclaimPolicy: Deletemeans a genuinelyreleased PV would already be gone, so detached-and-present implies a live claim
— was right for the DuckFleet one and right about the mechanism, but it could
not separate "suspended" from "its owner was deleted".
#1102 is a decision rather than a task: the StorageClass deletes the EBS volume
with the PVC, and that 50 GiB is a development Postgres someone may still want.
One unrelated thing fell out of the same audit
rustdev'sweb-apihas been unable to start for hours — its init containerpulls an
er-apitag that the ECR lifecycle policy expired. Filed as #1101,because the cause generalises: "retain the last 30 images" is a ~1.5-day
window during active development (45 images in
er-apispan 11-09 to 11-10),while per-developer namespaces are long-lived and pin immutable tags. That also
explains the ECR cost line falling from $2.36/day to $0.02/day around 11-10.
Closing this one
Everything this ticket was filed to record is written down, and both actionable
threads now have their own tickets (#1100 post-apply cleanup, #1101 ECR
retention, #1102 the orphaned PVC). The budgets and the Aurora reader both
shipped and were verified live — see #1095 and #1096.
Keeping it open would read as pending work when it is a record, so closing it.
The NAT no-lever result above is the part worth not re-deriving.