はじめに
どーも!shihopowerです!
今回はAWSのコスト管理系サービス・機能についてまとめました。
AWSにはBudgetsやCURなど、コストに関するサービスや機能がいくつかあります。それぞれの役割が似ているようで異なっており、「どのサービスを使えばいいのか」「違いは何か」が整理しにくいと感じていました。
本記事では、各サービス・機能の 定義・必要性・ユースケース・他サービスとの差分 を、AWS公式ドキュメントをもとに整理しています。AWSのコスト管理に入門したい方や、サービスの使い分けに迷っている方の参考になれば幸いです。
目次
- AWS Billing and Cost Management の全体像
- Cost Explorer
- Cost and Usage Report(CUR / CUR 2.0)
- AWS Budgets
- Cost Anomaly Detection
- Cost Allocation Tags & Cost Categories
- Cost Optimization Hub
- Savings Plans & Reserved Instances
- サービス選択の考え方まとめ
- おわりに
1. AWS Billing and Cost Management の全体像
AWS Billing and Cost Management は、請求の設定・支払い・コストの分析・整理・計画・最適化を支援する機能群です。
大きく以下の4カテゴリに分類できます。
| カテゴリ | 主なサービス・機能 |
|---|---|
| コスト可視化・分析 | Cost Explorer、Cost and Usage Report (CUR) |
| 予算管理・アラート | AWS Budgets、Cost Anomaly Detection |
| コスト配分・整理 | Cost Allocation Tags、Cost Categories |
| コスト最適化・削減 | Cost Optimization Hub、Savings Plans、Reserved Instances |
2. Cost Explorer
定義
Cost Explorer は、コストと使用量をグラフや表で確認・分析するためのツールです。
過去のデータを可視化するだけでなく、将来のコスト予測も行えます。また、Amazon Q Developer と連携して自然言語でコストに関する質問をすることも可能です。
AWS Cost Explorer is a tool that enables you to view and analyze your costs and usage.
— Analyzing your costs and usage with AWS Cost Explorer
必要性
Cost Explorer を有効化すると、AWS は現在の月と過去13か月のコストデータを準備し、今後12か月の予測を計算します。
請求書を眺めるだけでは気づけないコストのトレンドや傾向を視覚的に把握できます。
After you enable Cost Explorer, AWS prepares the data about your costs for the current month and the previous 13 months, and then calculates the forecast for the next 12 months.
— Enabling Cost Explorer
ユースケース
- 月累計・月末予測コストのダッシュボード確認
- サービス別・アカウント別・リージョン別のコスト内訳把握
- 「EC2費用が最も高いメンバーアカウント」など複数条件でのフィルタリング
- Reserved Instances や Savings Plans の利用率・カバレッジレポートの確認
You can use Cost Explorer to see which service you use the most, which Availability Zone most of your traffic is in, and which member account uses AWS the most. You can also apply multiple filters to look at intersecting datasets.
— Filtering the data that you want to view
他サービスとの差分
| 比較対象 | 差分 |
|---|---|
| 請求データ(Bills) | Bills は確定した支払い額の確認。Cost Explorer はトレンド分析・予測・深掘りが目的 |
| CUR | CUR は生データをS3に出力してプログラムで処理する。Cost Explorer はGUIで即座にインタラクティブ分析できる |
| AWS Budgets | Budgets は事前に上限を設定してアラートする。Cost Explorer はあくまで分析ツール |
Your Cost Explorer data appears in the following places: The Billing and Cost Management home page, the pages for Cost Explorer, Budgets, and Cost Anomaly Detection.
— Knowing the differences between Billing and Cost Explorer data
3. Cost and Usage Report(CUR / CUR 2.0)
定義
AWS CUR は、利用可能な中で最も包括的なコストと使用量データのセットです。
所有するS3バケットへ請求レポートを出力でき、時間・日・月単位でコストを分解したデータを取得できます。
AWS Cost and Usage Reports (AWS CUR) contains the most comprehensive set of cost and usage data available.
— What are AWS Cost and Usage Reports?
なお、現在は**CUR 2.0(Data Exports)**が新しい推奨方式です。
Data Exports enables you to create exports of the Cost and Usage Report (CUR) 2.0. This is the new and recommended way to receive your detailed cost and usage data from AWS.
— Creating reports
必要性
CUR は、Cost Explorer では対応しきれない複雑なコスト管理ニーズに対応するために必要です。
特にエンタープライズ規模で、専用のクエリシステムや分析基盤が必要な場合に活用します。
AWS CUR is helpful if you have complex cost management needs and require dedicated query or analytic-based systems.
— Migrating from Detailed Billing Reports to Cost and Usage Reports
また、CUR(旧版)は月によってカラムが変動する可能性がありましたが、CUR 2.0 では固定されたスキーマが提供されています。
CUR 2.0 contains a fixed set of columns, whereas the columns included for CUR can vary monthly depending on your usage of AWS services, cost categories, and resource tags.
— Cost and Usage Report (CUR) 2.0
ユースケース
- Amazon Athena / Redshift でのカスタムコスト分析クエリ
- QuickSight などの BI ツールを使った組織向けダッシュボード構築
- Reserved Instances のアモータイズドコストを含む詳細な予約管理
- Showback / Chargeback のための部門別コスト集計基盤
- ECS・EKS・Batchのコンテナワークロードの詳細コスト把握(Split Cost Allocation Data)
Your report files consist of a .csv file or a collection of .csv files and a manifest file. You can choose to configure your report data for integration with Amazon Athena, Amazon Redshift, or QuickSight.
— What are AWS Cost and Usage Reports?
他サービスとの差分
| 比較対象 | 差分 |
|---|---|
| Cost Explorer | Cost Explorer はGUIで即時分析。CUR はプログラム処理向けの生データ(リソース単位・時間単位まで取得可能) |
| Detailed Billing Report(旧) | CUR はDBRの上位互換。アモータイズドコストや追加カラムが利用可能 |
| CUR 2.0(Data Exports) | CUR 2.0 はスキーマが固定・ネストデータによりスパース性が低下・追加カラムあり。新規は CUR 2.0 推奨 |
4. AWS Budgets
定義
AWS Budgets は、コストや使用量に対して予算を設定し、閾値を超えた際にアラートを受け取るためのサービスです。
さらに Budget Actions を使えば、閾値超過時に IAM ポリシーの適用などの自動アクションも実行できます。
You can use AWS Budgets to track and take action on your AWS costs and usage.
— Managing your costs with AWS Budgets
作成できる予算タイプは6種類です。
| 予算タイプ | 内容 |
|---|---|
| コスト予算 | サービスへの支出上限を設定 |
| 使用量予算 | 1つ以上のサービスの使用量上限を設定 |
| RI利用率予算 | RIの利用率が閾値を下回った際にアラート |
| RIカバレッジ予算 | RIでカバーされているインスタンス時間の割合を監視 |
| Savings Plans利用率予算 | Savings Plansの利用率が閾値を下回った際にアラート |
| Savings Plansカバレッジ予算 | Savings Plansでカバーされている使用量の割合を監視 |
必要性
AWS Budgets の情報は1日最大3回更新されます。
コスト予算・使用量予算ともに、実績(accruing後)と予測(accruing前)の両方に対してアラートを設定できます。
AWS Budgets information is updated up to three times a day. Updates typically occur 8–12 hours after the previous update.
— Managing your costs with AWS Budgets
ユースケース
- 月額コストが$1,000を超えたらメールで通知する
- 予算の80%に達したら自動でIAMポリシーを適用し追加リソース作成を禁じる
- 翌月以降5%ずつ予算上限を増やす変動予算の設定
- RI・Savings Plans の日次利用率が80%を下回ったら通知する
- 特定プロジェクト期間(例:4/15〜7/15)に合わせたカスタム期間予算
Setting a monthly cost budget with a variable target amount, with each subsequent month growing the budget target by 5 percent. Then, you can configure your notifications for 80 percent of your budgeted amount and apply an action.
— Managing your costs with AWS Budgets
他サービスとの差分
| 比較対象 | 差分 |
|---|---|
| Cost Explorer | Cost Explorer は分析ツール。Budgets は事前に閾値を決めて管理・制御するツール |
| Cost Anomaly Detection | Anomaly Detection はMLで異常を自動検出。Budgets はあらかじめ決めた閾値を超えたら通知する計画的アプローチ |
5. Cost Anomaly Detection
定義
Cost Anomaly Detection は、機械学習を使って異常な支出とその根本原因を自動検出・通知するサービスです。
Cost Explorer の機能として提供されており、Cost Explorer を有効化すると自動でセットアップされます。
AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action.
— AWS Cost Anomaly Detection
必要性
クラウドではチームが自律的にリソースを調達・削除できるため、意図しない支出が発生しやすい環境です。
事前に固定閾値を設定するだけでは想定外の急増を検知できないケースがあります。Cost Anomaly Detection は機械学習でトレンドや季節性を考慮しながら通常パターンを学習し、外れ値を自動検知します。
Machine Learning model considers trends and seasonality to reduce false positives.
— AWS Cost Anomaly Detection
また、Cost Explorer を新規有効化すると Cost Anomaly Detection がデフォルトで自動有効化されます。
As part of the process of enabling Cost Explorer, AWS automatically configures Cost Anomaly Detection for your account.
— Enabling Cost Explorer
ユースケース
- 誰かが誤って大量のEC2インスタンスを立ち上げた際の即時検知・通知
- メール or Amazon SNS 経由での個別アラートまたは日次・週次サマリー受信
- Slack / Microsoft Teams / Amazon Chime へのアラート連携(SNSトピック経由)
- AWSサービス・リンクアカウント・コスト配分タグ・コストカテゴリごとのセグメント別監視
Once you set up your monitor and alert preference, AWS will notify you with individual alerts or daily or weekly summary via Amazon Simple Notification Service (Amazon SNS) or emails.
— AWS Cost Anomaly Detection
他サービスとの差分
| 比較対象 | 差分 |
|---|---|
| AWS Budgets | Budgets はあらかじめ決めた固定閾値での検知。Cost Anomaly Detection は閾値設定不要で、MLが通常パターンを学習して自動検出 |
| Cost Explorer | Cost Anomaly Detection で根本原因が分かりにくい場合(複数の小さな変化が複合している場合など)は、Cost Explorer でより詳細な分析を行うことを推奨 |
Some anomalies result from complex interactions of multiple small changes. In such cases, we recommend using AWS Cost Explorer for a more comprehensive analysis of all contributing factors.
— AWS Cost Anomaly Detection FAQs
6. Cost Allocation Tags & Cost Categories
Cost Allocation Tags(コスト配分タグ)
定義
タグはAWSリソースに付与するキーバリュー形式のラベルです。
コスト配分タグとして有効化すると、コスト配分レポートやCost Explorerでそのタグ軸でコストを集計・分析できるようになります。
A tag is a label that you or AWS assigns to an AWS resource. Each tag consists of a key and a value. You can use tags to organize your resources, and cost allocation tags to track your AWS costs on a detailed level.
— Organizing and tracking costs using AWS cost allocation tags
タグには2種類あります。
| 種類 | 内容 |
|---|---|
| AWS生成タグ | AWSまたはAWS Marketplace ISVが自動で生成・付与(例:aws:createdBy) |
| ユーザー定義タグ | ユーザー自身が定義・付与 |
どちらもBilling and Cost Managementコンソールで個別に有効化する必要があります。
必要性・ユースケース
チーム・プロジェクト・コストセンター・環境(本番/開発)といった軸でコストを追跡するために必要です。
例えば CostCenter: marketing のようなタグを全リソースに付与・有効化することで、マーケティング部門のAWS費用をCost Explorerで一目で確認できるようになります。
You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services.
— Organizing and tracking costs using AWS cost allocation tags
Cost Categories(コストカテゴリ)
定義
Cost Categories は、アカウント・タグ・サービスなどを条件にして独自のカテゴリルールを作成し、コストをグループ化する機能です。
Cost ExplorerやCURでそのカテゴリ軸を使ったコスト分析が可能になります。
Cost Allocation Tags との差分
| 比較項目 | Cost Allocation Tags | Cost Categories |
|---|---|---|
| 対象 | 個別リソースに付与するタグ | アカウント・タグ・サービス等を組み合わせたルール |
| 柔軟性 | タグが付与されたリソースに限定 | タグ付け不可能なリソース(返金・クレジット等)も対象可能 |
| 主な用途 | リソース単位の詳細追跡 | 組織・事業部門・アプリ単位の上位カテゴリ管理 |
AWS Cost Categories will then provide the functionality to group accounts or other tags ("meta-tagging") into categories, which can be tracked in the tools.
— Building a cost allocation strategy
7. Cost Optimization Hub
定義
Cost Optimization Hub は、複数のAWSリージョン・アカウントにまたがるコスト最適化の推奨事項を一元表示し、削減効果を定量化するためのAWS Billing and Cost Management の機能です。
Cost Optimization Hub is an AWS Billing and Cost Management feature that provides you with a comprehensive view of your cost optimization recommendations across your AWS Regions and AWS accounts within your organization.
— AWS Cost Optimization Hub FAQs
必要性
AWS Compute Optimizer や Billing and Cost Management など複数サービスにまたがっていたコスト最適化の推奨事項を、1つのダッシュボードに集約することで、どこから着手すべきかを素早く判断できます。
有効化後24時間以内に、下記のような問いに答えることができます。
- AWSコストをどれだけ削減できるか?
- どのAWSアカウントに最も最適化の余地があるか?
- コスト削減のためにとるべきトップ3の戦略は何か?
Cost Optimization Hub reduces the complexity and effort of identifying, filtering, and aggregating cost optimization opportunities of your AWS accounts, workloads, and resources.
— AWS Cost Optimization Hub FAQs
ユースケース
- 組織全体のライトサイジング・アイドルリソース削除・Savings Plans購入などの推奨を一覧で確認
- Reserved Instances・Savings Plans の既存割引を考慮した正確な削減見込み額の把握
- 推奨事項を実装工数と削減効果で優先順位付け
推奨タイプは15種類以上あります。
Cost Optimization Hub recommendations are consolidated from AWS Compute Optimizer and consist of over 15 types of optimizations, such as resource rightsizing, idle resource deletion, Savings Plans, and Reserved Instances.
— Cost optimization recommendations (from Cost Optimization Hub)
他サービスとの差分
| 比較対象 | 差分 |
|---|---|
| Savings Plans / Reserved Instances | それらは削減のための購入手段。Cost Optimization Hub は「何を買うべきか・何を変えるべきか」を推奨するダッシュボード |
| Cost Explorer | Cost Explorer にも一部推奨機能はあるが、Cost Optimization Hub はより横断的・一元的なビューで組織全体を対象とする |
8. Savings Plans & Reserved Instances
定義
どちらもコミットメント(利用予約)と引き換えにOn-Demand料金より割引を受ける価格モデルです。
他のコスト管理サービスとは性質が異なり、「分析・監視するツール」ではなく「割引を購入する仕組み」です。
Savings Plans
Savings Plans は、時間あたりの一定利用額(USD/時間)にコミットすることで最大72%オフを受けられる柔軟な価格モデルです。
| 種類 | 割引率 | 柔軟性 |
|---|---|---|
| Compute Savings Plans | 最大66%割引 | EC2・Fargate・Lambdaに適用。インスタンスファミリー・サイズ・OS・リージョン・テナンシーを問わず適用 |
| EC2 Instance Savings Plans | 最大72%割引 | 特定のインスタンスファミリー・リージョンへのコミットが必要 |
Reserved Instances(RI)
Reserved Instances は、特定のインスタンス構成にコミットすることで最大72%オフを受けられる価格モデルです。
EC2以外にも RDS・Redshift・ElastiCache・DynamoDBなどに適用できます。
We recommend Savings Plans over Reserved Instances. With Reserved Instances, you make a commitment to a specific instance configuration, whereas with Savings Plans, you have the flexibility to use the instance configurations that best meet your needs.
— Reserved Instances for Amazon EC2 overview
Savings Plans と Reserved Instances の使い分け
| 比較項目 | Savings Plans | Reserved Instances |
|---|---|---|
| コミット対象 | 時間あたり利用金額(USD/h) | 特定のインスタンス構成 |
| 柔軟性 | 高い(構成変更に追従) | 低い(構成固定) |
| 対応サービス | EC2・Fargate・Lambda | EC2・RDS・Redshift・ElastiCache・DynamoDB等 |
| AWS推奨 | ✅ 推奨 | EC2以外はRIが必要 |
9. サービス選択の考え方まとめ
| やりたいこと | 使うべきサービス・機能 |
|---|---|
| コストをグラフで確認・予測したい | Cost Explorer |
| 生データを詳細分析・BIツール連携したい | CUR / Data Exports(CUR 2.0) |
| 予算を設定してアラートを受けたい | AWS Budgets |
| 予期しないコスト急増を自動検知したい | Cost Anomaly Detection |
| チーム・プロジェクト別にコストを分けたい | Cost Allocation Tags / Cost Categories |
| 最適化の推奨を一覧で見たい | Cost Optimization Hub |
| コンピュート費用を長期割引したい | Savings Plans(柔軟性重視) |
| RDS・Redshift等も割引したい | Reserved Instances |
典型的な組み合わせパターン
CUR(生データ収集)
→ Cost Explorer(日常的な分析・傾向把握)
→ AWS Budgets(予算上限の設定・自動アクション)
→ Cost Anomaly Detection(異常な急増の自動検知)
→ Cost Optimization Hub(削減施策の優先順位付け)
→ Savings Plans / RI(割引の購入・適用)
10. おわりに
今回はAWSのコスト管理系サービス・機能を、定義・必要性・ユースケース・他サービスとの差分の観点で整理しました。
それぞれ役割が異なるので、目的に応じて複数のサービスを組み合わせて使うのがベストプラクティスです。
まずは Cost Explorer でコストを可視化し、AWS Budgets でアラートを設定するところから始めてみてください!
本記事がお役に立てれば幸いです。最後まで読んでいただきありがとうございました!
参考:AWS公式ドキュメント
- What is AWS Billing and Cost Management?
- Analyzing your costs and usage with AWS Cost Explorer
- What are AWS Cost and Usage Reports?
- Cost and Usage Report (CUR) 2.0
- Managing your costs with AWS Budgets
- AWS Cost Anomaly Detection
- Organizing and tracking costs using AWS cost allocation tags
- Building a cost allocation strategy
- AWS Cost Optimization Hub FAQs
- Reserved Instances for Amazon EC2 overview
- Knowing the differences between Billing and Cost Explorer data