Skip to content

AWS cost estimate (26.4) vs. the aws-cost app — analysis for #221 - #222

Open
kyle-lesinger wants to merge 1 commit into
mainfrom
aws-cost/estimate-comparison-221
Open

AWS cost estimate (26.4) vs. the aws-cost app — analysis for #221#222
kyle-lesinger wants to merge 1 commit into
mainfrom
aws-cost/estimate-comparison-221

Conversation

@kyle-lesinger

Copy link
Copy Markdown
Member

Relates to #221 (AWS Cost Estimate from Alexandra).

Adds docs/COST_ESTIMATE_COMPARISON.md: a cell-by-cell comparison of the Disasters API and Infra Cost Estimates 26.4 sheet (linked in #221) against the cost-dashboard/ On-Demand model + the us-west-2 pricing snapshot.

What the analysis found

Agree where they overlap (On-Demand, ×730 h/mo):

Instance Sheet $/mo App $/mo Match
db.t3.small 26.28 26.28 ✅ exact
db.r5.large 182.50 182.50 ✅ exact

Three major divergences:

  1. db.t4g.medium — sheet $138.92 vs app $47.45 (~2.9×). The SM2A "airflow db" figure bundles Multi-AZ/storage; the app prices bare instance-hours + itemizes storage. Also internally inconsistent with the sheet's other (bare-rate) RDS rows.
  2. Lambda API $ ~8–25× the app for the same invocations/duration — the sheet omits memory (GB) (the app's GB-seconds input) and likely folds in API Gateway + rounding (STAC's flat $1.00 is a floor).
  3. ECS is un-modelable in the app — it's the bulk of SM2A ($215.85/mo), and the app has no ECS/Fargate service, so SM2A and the Cumulative scenarios can't be built today.

Structural: the sheet does dataset-scaling, named what-if rollups, and cost-allocation heuristics ("2/3 of ECS", untagged) that the generic calculator doesn't.

Implications

  • RDS line items in Alexandra's estimate are corroborated by the app.
  • The biggest real cost driver (ECS in SM2A) is invisible to the app — any "full picture" total understates real infra until ECS is added.

Future work

  1. ECS / Fargate service (largest gap).
  2. RDS Multi-AZ toggle (reconciles the t4g.medium gap).
  3. API Gateway line + prominent Lambda memory.
  4. Lightweight estimated line items (CloudFront, Amplify, Secrets Manager, …) as compact flat contributions to the grand total.
  5. Optional: scenario rollups + dataset-scaling.

Full write-up, tables, and file/line references are in the doc.

Analysis for #221 — parse the 'Disasters API and Infra Cost Estimates 26.4'
sheet (APIs/RDS/SM2A/Cumulative) and compare cell-by-cell to cost-dashboard's
On-Demand model + us-west-2 pricing snapshot.

- Agree: db.t3.small and db.r5.large match exactly (bare On-Demand, x730).
- Diverge: db.t4g.medium $138.92 vs $47.45 (Multi-AZ/storage bundled);
  Lambda API $ ~8-25x app (memory not captured + likely API Gateway/rounding);
  ECS (the bulk of SM2A) has no app service.
- Future work: ECS/Fargate, RDS Multi-AZ, API Gateway + Lambda memory, and
  lightweight estimated line items (CloudFront/Amplify/Secrets Manager).
@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for veda-pr-dashboard canceled.

Name Link
🔨 Latest commit 4e830e7
🔍 Latest deploy log https://app.netlify.com/projects/veda-pr-dashboard/deploys/6a6cb76c38976900091c3fc9

@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for veda-github-actions canceled.

Name Link
🔨 Latest commit 4e830e7
🔍 Latest deploy log https://app.netlify.com/projects/veda-github-actions/deploys/6a6cb76c6e2b0a00087f0b4f

@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for veda-leave-dashboard canceled.

Name Link
🔨 Latest commit 4e830e7
🔍 Latest deploy log https://app.netlify.com/projects/veda-leave-dashboard/deploys/6a6cb76cadb2210007f15f40

@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for veda-dse-hub canceled.

Name Link
🔨 Latest commit 4e830e7
🔍 Latest deploy log https://app.netlify.com/projects/veda-dse-hub/deploys/6a6cb76c8389530008286893

@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for veda-aws-dashboard canceled.

Name Link
🔨 Latest commit 4e830e7
🔍 Latest deploy log https://app.netlify.com/projects/veda-aws-dashboard/deploys/6a6cb76c76bb6b0008a32cb0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant