AWS Cost Explorer
The interactive place you go to ask "where did the money go?" — one bill, re-sliced live by service, account, region, instance type or tag, from whole-org totals down to a single resource-hour. Everything it shows is backward-looking, plus one forecast line pushed up to 12 months ahead.
Nơi tương tác để hỏi "tiền đi đâu?" — cùng một hoá đơn, cắt lại tức thời theo service, account, region, instance type hay tag, từ tổng toàn tổ chức xuống tới từng giờ của một tài nguyên. Mọi thứ nó hiện đều nhìn về quá khứ, cộng thêm một đường dự báo kéo tới 12 tháng phía trước.
Reach for it / not the right toolKhi nào dùng / khi nào không
Reach for Cost ExplorerChọn Cost Explorer
- "The bill jumped 30% last month — which service, which account, which region?" Group by, filter, done in a minute."Hoá đơn tháng rồi tăng 30% — service nào, account nào, region nào?" Group by, filter, xong trong một phút.
- Showing each team its own spend, sliced by an activated
CostCenterorProjecttag.Cho mỗi team thấy chi phí của chính họ, cắt theo tagCostCenterhayProjectđã kích hoạt. - Sizing a Savings Plan or Reserved Instance commitment before you sign up for one or three years.Ước lượng mức cam kết Savings Plan hay Reserved Instance trước khi ký một hoặc ba năm.
- Feeding a budget number for next quarter — the 12-month forecast with its confidence band.Lấy con số ngân sách cho quý tới — dự báo 12 tháng kèm dải tin cậy.
- A quick scripted answer: the Cost Explorer API (
GetCostAndUsage) returns the same aggregates.Cần câu trả lời nhanh bằng script: Cost Explorer API (GetCostAndUsage) trả về đúng các số tổng đó.
Not the right toolKhông phải chỗ dùng
- Alerting when spend passes a number, or when a forecast says it will → Budgets. Cost Explorer never notifies anyone.Cảnh báo khi chi phí vượt một ngưỡng, hoặc khi dự báo nói là sẽ vượt → Budgets. Cost Explorer không bao giờ gửi thông báo cho ai.
- Joining billing data to your own systems, or arbitrary SQL over every line item → CUR in S3 + Athena.Ghép dữ liệu billing với hệ thống nội bộ, hay chạy SQL tuỳ ý trên từng dòng → CUR trong S3 + Athena.
- Right-sizing EBS, Lambda, ECS on Fargate, ASGs, RDS — that breadth (and the performance-risk view) is Compute Optimizer.Right-sizing cho EBS, Lambda, ECS trên Fargate, ASG, RDS — độ phủ đó (và góc nhìn rủi ro hiệu năng) là của Compute Optimizer.
- Catching a weird spike you didn't think to look for — you'd need to know the threshold. That's Cost Anomaly Detection.Bắt một cú tăng bất thường mà bạn không nghĩ tới để mà ngồi soi — bạn sẽ phải biết trước ngưỡng. Đó là việc của Cost Anomaly Detection.
- Anything real-time. Billing data lands with hours of lag; this is not CloudWatch.Bất cứ thứ gì thời gian thực. Dữ liệu billing về trễ hàng giờ; đây không phải CloudWatch.
One dataset, re-slicedMột tập dữ liệu, cắt lại nhiều kiểu
The mental model is small: there is one pile of cost-and-usage records. Group by decides how the bars split, filter decides which records are in the pile at all, granularity decides how wide a bar is. Nothing else changes. Mô hình tư duy rất gọn: chỉ có một đống bản ghi chi phí và mức dùng. Group by quyết định cột được chia thế nào, filter quyết định bản ghi nào còn nằm trong đống đó, granularity quyết định một cột rộng bao nhiêu. Ngoài ra không có gì khác.
Switch the group-by and every bar re-splits — same total, different story. The forecast is a projection of your own past usage, not a plan: it does not know about the migration you are about to start.
Đổi group-by là mọi cột tự chia lại — vẫn tổng đó, nhưng câu chuyện khác. Đường dự báo chỉ là phép ngoại suy từ mức dùng quá khứ của chính bạn, không phải kế hoạch: nó không biết đợt migration bạn sắp làm.
What it recommends, and who does it betterNó gợi ý gì, và ai làm tốt hơn
Cost Explorer is not only a chart — it ships three opinionated outputs. Know which one an exam scenario is fishing for, and where each one hands off to a sibling service. Cost Explorer không chỉ là biểu đồ — nó còn cho ra ba kết quả có chính kiến. Cần biết tình huống đề đang nhắm cái nào, và mỗi cái bàn giao cho service anh em nào.
Cost Explorer vs CUR vs BudgetsCost Explorer, CUR và Budgets
Three tools over the same billing data, split by time direction and fidelity. Cost Explorer looks back at aggregates in a console; the Cost and Usage Report dumps every line item to S3 for real SQL; Budgets looks forward and shouts. Ba công cụ trên cùng dữ liệu billing, khác nhau ở hướng thời gian và độ chi tiết. Cost Explorer nhìn lại các số tổng trong console; Cost and Usage Report đổ từng dòng ra S3 để chạy SQL thật; Budgets nhìn tới và la lên.
| Cost Explorer | CUR | Budgets | |
|---|---|---|---|
| ShapeHình dạng | interactive console + API, pre-aggregatedconsole + API tương tác, đã tổng hợp sẵn | CSV / Parquet in S3, one row per line item, hourlyCSV / Parquet trong S3, mỗi dòng một line item, theo giờ | a rule + notification, no visualisationmột quy tắc + thông báo, không có trực quan hoá |
| DirectionHướng | backward — plus a 12-month forecast you read yourselfnhìn lại — kèm dự báo 12 tháng mà bạn tự đọc | backward only — it is a record, not an opinionchỉ nhìn lại — nó là bản ghi, không phải nhận định | forward — actual or forecasted breach triggers an alertnhìn tới — vượt thực tế hoặc vượt theo dự báo đều kích cảnh báo |
| Query powerKhả năng truy vấn | fixed group-by / filter dimensionstập chiều group-by / filter cố định | arbitrary SQL via Athena, or load to Redshift / QuickSightSQL tuỳ ý qua Athena, hoặc nạp vào Redshift / QuickSight | none — you filter the budget's scope, that's allkhông có — bạn chỉ giới hạn phạm vi của budget, hết |
| Reach for it whenDùng khi | a human needs an answer nowmột người cần câu trả lời ngay bây giờ | chargeback, custom BI, anything Cost Explorer can't group bychargeback, BI tự dựng, bất cứ thứ gì Cost Explorer không group by được | someone must be told without lookingphải báo cho ai đó mà không cần họ vào xem |
Things that catch you outNhững chỗ dễ vấp
- Tags are invisible until activated. A resource can be perfectly tagged and still show up under "no tag key" — Cost Explorer only offers keys you activated in Billing, and activation is not retroactive, so the tag appears on data from that point on. See Cost Allocation Tags. Tag vô hình cho đến khi được kích hoạt. Một tài nguyên có thể đã gắn tag đầy đủ mà vẫn nằm trong nhóm "no tag key" — Cost Explorer chỉ đưa ra những key bạn đã kích hoạt trong Billing, và việc kích hoạt không hồi tố, nên tag chỉ hiện trên dữ liệu từ thời điểm đó trở đi. Xem Cost Allocation Tags.
- Enable it in the management account. In an Organization, the payer sees everything and can group by linked account; a member account sees only itself — and the payer can switch member access off entirely. Hãy bật ở management account. Trong Organization, tài khoản trả tiền thấy hết và có thể group by linked account; account thành viên chỉ thấy chính nó — và payer có thể tắt hẳn quyền truy cập của thành viên.
- First enable takes up to 24 hours to populate, and daily figures keep settling for a day or two. Don't act on the current month's last bar. Lần bật đầu tiên mất tới 24 giờ để có dữ liệu, và số theo ngày còn chốt lại thêm một hai ngày nữa. Đừng ra quyết định dựa trên cột cuối của tháng hiện tại.
-
The API is not free — each paginated
GetCostAndUsagerequest is charged. A dashboard polling it every minute is a line item of its own. API không miễn phí — mỗi requestGetCostAndUsagecó phân trang đều bị tính tiền. Một dashboard gọi nó mỗi phút sẽ tự trở thành một khoản chi riêng. - "Show costs as" changes the number: unblended is what each account was charged, amortised spreads upfront RI and Savings Plan payments across the term, blended is an Organization-wide average. Two people comparing different modes will never agree. "Show costs as" làm đổi con số: unblended là số mà từng account bị tính, amortised trải khoản trả trước của RI và Savings Plan ra cả kỳ hạn, blended là mức trung bình toàn Organization. Hai người so hai chế độ khác nhau sẽ không bao giờ khớp.
- The forecast is extrapolation with a confidence interval, computed from your history. New workloads, one-off migrations and seasonal launches are exactly what it gets wrong. Dự báo là ngoại suy kèm khoảng tin cậy, tính từ lịch sử của bạn. Workload mới, đợt migration một lần và các đợt ra mắt theo mùa chính là những thứ nó đoán sai.
Exam reflexesPhản xạ khi thi
| The question says…Đề nói… | AnswerTrả lời |
|---|---|
| "Visualise and understand cost across all accounts, broken down by service or team""Trực quan hoá và hiểu chi phí trên mọi account, tách theo service hay team" | Cost Explorer in the management account, group by linked account / tagCost Explorer ở management account, group by linked account / tag |
| "Forecast spend for the next year from past usage""Dự báo chi phí năm tới dựa trên mức dùng quá khứ" | Cost Explorer forecast — up to 12 monthsDự báo của Cost Explorer — tới 12 tháng |
| "Alert us when spend exceeds $X or is forecast to""Cảnh báo khi chi phí vượt $X hoặc được dự báo sẽ vượt" | Budgets — Cost Explorer never notifiesBudgets — Cost Explorer không hề gửi thông báo |
| "Detect unusual spend without defining a threshold""Phát hiện chi tiêu bất thường mà không cần đặt ngưỡng" | Cost Anomaly Detection (ML) → SNS / emailCost Anomaly Detection (ML) → SNS / email |
| "Run custom SQL over every billing line item / build our own chargeback""Chạy SQL tuỳ ý trên từng dòng hoá đơn / tự dựng chargeback" | CUR to S3 → Athena (→ QuickSight)CUR vào S3 → Athena (→ QuickSight) |
| "Right-size EBS, Lambda and Fargate too, weighing performance""Right-size cả EBS, Lambda và Fargate, có cân nhắc hiệu năng" | Compute Optimizer — Cost Explorer right-sizing is EC2 onlyCompute Optimizer — right-sizing của Cost Explorer chỉ có EC2 |