View
115
Download
2
Category
Preview:
DESCRIPTION
Citation preview
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
AWS Billingについて
アマゾン データサービス ジャパン株式会社ソリューションアーキテクト吉荒 祐一emsp 舟崎 健治emsp 平山 毅emsp
reGenerate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
2
Agenda
AWSの課金金について AWS無料料利利用枠について Billing Alertについて AWS Billing Consoleについて Consolidated Billingについて Billing Reportについて まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
3
AWSの課金金について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
4
AWSは従量量課金金モデル初期投資が不不要 実際の使用分
のみ支払い
低額な変動価格
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
5
本日の目標
Billingを理理解してAWSの課金金モデルの利利点を活かす
Billingを理理解して安心してAWSを使う
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
6
例例bull S3に1か月間100GBその内1日だけ200GB保存した場合
AWSの従量量課金金の考え方
30日
100GB
200GB 1GBあたり10円
10 x 100 = 1000円
1日100GB分の追加10 x 100 x 1 30 日 = 33円
合計1000 + 33 = 1033 円
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
2
Agenda
AWSの課金金について AWS無料料利利用枠について Billing Alertについて AWS Billing Consoleについて Consolidated Billingについて Billing Reportについて まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
3
AWSの課金金について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
4
AWSは従量量課金金モデル初期投資が不不要 実際の使用分
のみ支払い
低額な変動価格
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
5
本日の目標
Billingを理理解してAWSの課金金モデルの利利点を活かす
Billingを理理解して安心してAWSを使う
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
6
例例bull S3に1か月間100GBその内1日だけ200GB保存した場合
AWSの従量量課金金の考え方
30日
100GB
200GB 1GBあたり10円
10 x 100 = 1000円
1日100GB分の追加10 x 100 x 1 30 日 = 33円
合計1000 + 33 = 1033 円
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
3
AWSの課金金について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
4
AWSは従量量課金金モデル初期投資が不不要 実際の使用分
のみ支払い
低額な変動価格
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
5
本日の目標
Billingを理理解してAWSの課金金モデルの利利点を活かす
Billingを理理解して安心してAWSを使う
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
6
例例bull S3に1か月間100GBその内1日だけ200GB保存した場合
AWSの従量量課金金の考え方
30日
100GB
200GB 1GBあたり10円
10 x 100 = 1000円
1日100GB分の追加10 x 100 x 1 30 日 = 33円
合計1000 + 33 = 1033 円
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
4
AWSは従量量課金金モデル初期投資が不不要 実際の使用分
のみ支払い
低額な変動価格
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
5
本日の目標
Billingを理理解してAWSの課金金モデルの利利点を活かす
Billingを理理解して安心してAWSを使う
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
6
例例bull S3に1か月間100GBその内1日だけ200GB保存した場合
AWSの従量量課金金の考え方
30日
100GB
200GB 1GBあたり10円
10 x 100 = 1000円
1日100GB分の追加10 x 100 x 1 30 日 = 33円
合計1000 + 33 = 1033 円
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
5
本日の目標
Billingを理理解してAWSの課金金モデルの利利点を活かす
Billingを理理解して安心してAWSを使う
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
6
例例bull S3に1か月間100GBその内1日だけ200GB保存した場合
AWSの従量量課金金の考え方
30日
100GB
200GB 1GBあたり10円
10 x 100 = 1000円
1日100GB分の追加10 x 100 x 1 30 日 = 33円
合計1000 + 33 = 1033 円
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
6
例例bull S3に1か月間100GBその内1日だけ200GB保存した場合
AWSの従量量課金金の考え方
30日
100GB
200GB 1GBあたり10円
10 x 100 = 1000円
1日100GB分の追加10 x 100 x 1 30 日 = 33円
合計1000 + 33 = 1033 円
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
7
どのくらい課金金されそうか簡易易見見積りツール
Simple Monthly Calculatorbull httpcalculators3amazonawscomcalc5htmllng=ja_JP
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
8
どのくらい課金金されているか確認する方法 Billing Console画面で確認(後述)
bull httpsconsoleawsamazoncombillinghomebull
Billing Report(CSV)をダウンロードして確認(後述)
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
9
AWS無料料利利用枠について
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
10
AWS無料料利利用枠とは
AWSにサインアップした日から12か月間利利用可能
新規サインアップ後12か月以内にAWSのサービスを利利用それが無料料利利用枠に該当すれば利利用料料金金が自動的に無料料となる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
11
AWS無料料利利用枠が利利用可能なサービス
詳細ページ httpawsamazoncomjpfree Amazon SWFDynamoDBSNSSQSElastic TranscoderCloudWatchはサインアップ12か月経過後も利利用可能な無料料利利用枠がある
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
12
AWS無料料利利用枠の例例Amazon EC2 EBS
EC2 インスタンス EBS
Volume
750時間 月Amazon LinuxUNIXRHEL または SLESマイクロインスタンス
750時間 月Windows
マイクロインスタンス
30GB 月EBSストレージ
200万IO 月
1GB 月EBSスナップショット
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
13
AWS無料料利利用枠の例例Amazon S3
5GB 月S3標準ストレージ
20000 GETリクエスト 月
2000 PUTリクエスト 月
Amazon S3
Bucket
Object Object Object
+すべてのAWS サービスを総合してAWSから外部へのデータ送信(アウト)の合計が15GB 月無料料
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
14
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
Instance EBSVolume
8GB
SQSQueue Instance SNS
Topic
10GB
EBSVolume
8GB10GB
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
15
無料料利利用枠で構築可能なシステムの例例
AWS Cloud
Elastic LoadBalancing
InstanceEBS
Volume
10GB
RDS DB Instance
DynamoDB
ElastiCache Cache Node
RDS MySQLt1micro 750時間20GBストレージMutliAZなし
Instance EBSVolume
8GB
EC2インスタンス 3 台t1micro 250時間10GB EBSボリューム
S325MBファイル 2000個(合計5GB)20000 GETリクエスト2000 PUTリクエスト
SQSQueue
Instance SNSTopic
SQS1000000リクエスト(12か月経過後も有効)
DynamoDB100MBストレージ5ユニットの書き込み容量量10ユニットの読み込み容量量(12か月経過後も有効)
ElastiCache1キャッシュノードt1micro 750時間
10GB
EBSVolume
8GB10GB
SNS1000000リクエスト1000メール通知(12か月経過後も有効)
データ転送すべてのAWSサービスを総合して帯域幅「送信(アウト)」15GB
ELB 1ロードバランサ750時間15GB分のデータ処理理
Data Pipeline1か月に3回という低頻度度の前提条件1か月に5回という低頻度度のアクティビティ
S3 Bucket
AWS Data Pipeline
Amazon Elastic Transcoder
Elastic TranscoderSDトランスコード20分またはHDトランスコード10分
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
16
無料料利利用枠の注意事項
無料料利利用枠に該当しないサービスを利利用すると自動的に課金金される
1カ月あたりの無料料使用枠を全て使いきれなかったとしても翌月に無料料使用枠は繰り越されない
無料料利利用枠を超えると自動的に利利用が停止される機能は現状提供されていないbull 課金金が発生したらBilling Alertを出すことは可能
bull Billing Alertを使って自動的に利利用停止させるには作りこみが必要
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
17
BILLING ALERTについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
18
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
19
課金金情報へのアクセス管理理 AWSウェブサイトを AWS Identity and Access Management(IAM)と統合しユーザーに対し請求情報のアクセス権限を与えることが可能
アカウントアクティビティページおよび使用状況レポートページのアクセスコントロールが可能
3つのステップbull セキュリティの質問を設定bull AWS ウェブサイトへのアクセスをアクティベートbull IAM ユーザー用カスタムポリシーを作成
詳細は下記からbull 「AWS Account Billing の概要」ldquoAWS アカウント請求情報へのユーザーアクセスコントロールrdquo
bull httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutControllingAccessWebsitehtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
20
Trusted Advisor お客様のAWS環境を精査しコスト削減等の推奨事項をお知らせする機能
通知設定も可能
サポートレベルが「ビジネス」または「エンタープライズ」以上の場合にサポートセンター経由でアクセス可能
RI EC2インスタンスEBS等100個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用してきたベストプラクティスが適用されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
21
Billing Alertとは
CloudWatchでBillingを監視ししきい値を越えたらAlertを出すことができる機能bull Billing Alertの設定はNorth Virginia Regionを指定
しきい値を越えたらSNSを使って通知可能bull SNSの機能によりEメールやHTTPHTTPS等で通知が可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
22
CloudWatchで監視可能なBillingのメトリクス
トータルの見見積り額 サービスごとの見見積り額(1) 子アカウントごとの見見積り額(2) 子アカウントのサービスごとの見見積り額1見見積り額を監視可能なサービス利利用開始後に選択可能に
DataTransfer QueueService SupportBusiness CloudFront
CloudSearch DynamoDB EC2 ElastiCache
Glacier Kinesis RDS Route53
S3 SNS VPC DataPipeline
ElasticMapReduce SimpleDB
2 子アカウントとはConsolidated Billing(後述)により統合されたアカウントのこと
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
23
コンソリされた 子アカウントの利利用状況のグラフ化
子アカウントの利利用状況を選択しグラフでそれぞれのemsp 推移情報を見見れる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
24
予期せずに利利用料料金金が発生する場合の例例
Auto Scalingグループで最小台数が1台以上設定時に手動でインスタンスを停止したが再度度Auto Scalingにより自動起動してきた場合
インスタンスをterminateしたがEBSボリュームのdelete on terminationをONにしていない場合
Elastic IPを付与済みのインスタンスを停止したが使用していたElastic IPを削除していない場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
25
Billing Alertの活用
料料金金の上限を守らなければならない場合 コストの管理理をタイムリーに行行いたい場合 無料料利利用権の範囲内で利利用したい場合
bull アカウント新規開設時の無料料利利用枠bull Education GrantAWS Activate等の無料料利利用枠
ほとんど全てのお客様に有益 Billing Alertはベストプラクティスの一つ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
26
Billing Alertの設定 AWS Management Console
bull CloudWatch Dashboardbull NVirginiaリージョン選択
ndash Billing
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
27
Billing Alertの設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
28
Billing Alertの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
29
AWS Billing Consoleについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
30
AWS Billing Consoleとは
AWSでどのくらいの金金額を使っているのかをGUIで簡単に見見ることが可能
日本語含め8つの言語で利利用可能 料料金金や支払い方法の管理理インタフェースを提供
bull 支払履履歴や未払い料料金金の支払い処理理も可能 Management Consoleでここをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
31
Billing Consoleのダッシュボード画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
32
請求書画面CSV形式で
ダウンロード可能過去の請求書を表示可能
サービスごとの利利用料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
33
お支払履履歴画面
請求書をPDFでダウンロード可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
34
アカウント設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
35
レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
36
インスタンスの利利用状況レポート画面
利利用しているインスタンスのタイプやそのコストのトレンドを可視化可能
さまざまなフィルターを用いて利利用状況を表示可能フィルタ項目
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
37
リザーブドインスタンスの利利用状況レポート画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
38
設定画面
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
39
Programmatic Billing Accessを有効にする方法
Billing Consoleのメニューの設定画面で以下のように設定する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
40
各種Billing Reportを有効にする方法
Programmatic Billing Accessを有効にした後で該当するReportにチェックを入れて設定を保存する
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
41
Consolidated Billingについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
42
Consolidated Billingとは
AWSの費用請求をまとめられるサービス 複数アカウントの費用を1つにまとめて支払える
請求アカウント
子アカウント
子アカウント
全アカウントの費用がまとめて請求される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
43
Consolidated Billingのメリット
支払いの一元化が可能
アカウントごとの利利用明細の確認が可能
通信量量やデータ量量は全アカウントを合算bull 合算後の量量によってはボリュームディスカウントが可能
リザーブドインスタンスの費用の融通が可能bull あるアカウントで買ったリザーブドインスタンスを使っていなければ別のアカウントに自動でリザーブドの割引が適用
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
44
ボリュームディスカウント
いくつかのAWSのサービスでは多く利利用すると価格を下げることが可能
Consolidated Billingにより複数のアカウントの利利用量量を合算してボリュームディスカウントを受けることが可能
httpdocsawsamazoncomja_jpawsaccountbillinglatestaboutconsolidatedbillinghtmluseconsolidatedbilling-‐‑‒discounts
S3データ転送料料金金 東京リージョンの例例①最初の10TB $0201 GB②次の40TB $0158 GB
8 TB
4 TB
12 TB
①
② ②emsp $013 x 1024GB x 2TB =$323584
① $017 x 1024GB x 10TB =(最初の1GB無料料) $2058039
合計 $2381623
Bob Susan
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
45
Consolidated BillingとReservedインスタンス(RI)について
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
46
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
47
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
48
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
49
Consolidated BillingとReservedインスタンス(RI)について
注意同じ種類のインスタンスを選択するbull 同じインスタンスタイプAZLinuxWindows
RI 0 個
請求アカウント(Bob)
RI 5 個
子アカウント(Susan)
RI $002 時間通常インスタンス$010 時間
RI $002 x 5 = $010
通常 インスタンス $010 x 4 = $040
合計 050
平均 $050 9 = 0055555
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
50
Blended rateとUnblended rate
Blended ratebull 連結アカウント間の同じ種類のリソースの平均利利用料料金金
Unblended ratebull 元々の利利用料料金金
Consolidated Billing適用時はBlended rateが優先される
Detailed Billing Reportに表示されている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
51
Blended rateとUnblended rateの料料金金比較例例
マイクロインスタンスを利利用した場合
Unblended rate積算料料金金
期間
Unblended rate 0027Blended rate 0009107
期間中にrateの変更更がemsp なかった場合
Blended rate
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
52
Consolidated Billing利利用までの流流れ
請求アカウントを決定
子アカウントを作成(既存アカウント可)
請求アカウントから子カウントへ通知
(専用画面からメール送付)
子アカウントに送られたメールで承諾諾
コンソリデート成立立
設定方法の詳細はAPPENDIXに掲載
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
53
Consolidated Billingの有効期間
子アカウント追加解除は即時反映されるbull 追加時は子アカウントが追加リクエストをメールで受信追加を許可した時点で支払が統合される
31 41子アカウント追加
子アカウント支払期間
親アカウント支払期間
子アカウント解除
子アカウント支払期間
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
54
Consolidated Billingの注意事項 全アカウントの課金金の合算に対して1アカウント分の無料料枠のみ適用
請求アカウントの明細の金金額ne全アカウントの配分の合計となる場合あり上回る場合
下回る場合
明細項目は小数点第二位以下が丸められる$001未満の場合は$001に繰り上げ
配分コストは小数点以下6桁まで繰り上げはされない
およそ$001の誤差が発生する可能性あり
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
55
Billing Reportについて
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
56
Billing Reportとは 1カ月ごとのAWS利利用見見積金金額についての詳細なレポート
bull 実際の利利用料料金金ではなく見見積金金額を出力力(Monthly Reportのみ実際の金金額を含むMarketPlace利利用料料は含まれない)
CSV形式で取得可能
Amazon S3
BucketDetailed Billing Report CSV File
Detailed Billing Report
Monthly Cost Allocation Report
Cost Allocation and Tagging Report CSV File
Detailed Billing Report with
Resource and TagsMonthly Report
Detailed Billing Report CSV File
Programmatic Billing AccessBilling Consoleで取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
57
レポート種類の使い分け
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with
Resource and Tags
Monthly Report
Tag別Tag無
1時間集計
月集計
Tag分類
集計単位
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
58
Programmatic Billing Accessとは
Amazon S3のAPIを使ってS3 bucketに格納されるbillingデータ(CSVファイル)を参照することができる機能
Programmatic Billing Accessを許可するACL
を設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
59
Programmatic Billng AccessによるBucketへのアクセス権限許可の例例
ここではAWSアカウントのroot権限にGet Putの権限を与えてい
る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
60
Programmatic Billing Accessのメリット
CSVであるためExcel等で読み込むことができる
S3 APIを使ってbillingデータを参照するアプリケーションを作ることができる
IAMと併用して経理理専用アカウントを作成可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
61
Programmatic Billing Accessの詳細
指定したS3 bucketに格納
Monthly CSV Reportは月の最後のレポートが生成されるまで定期的に上書きされるbull 1日に数回のペースで書き込まれる
過去の月のレポートはbucket内にそのまま残る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
62
Billing Reportの種類種類 概要 ファイル名の形式
Monthly Report AWSのサービスごとの利用見積を表示 Billing Consoleから取得
ltAWS account numbergt-aws-billing-csv-yyyy-mmcsv
Detailed Billing Report
1時間ごとのAWSのサービスごとの利用見積を表示 S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-yyyy-mmcsvzip
Monthly Cost Allocation report
Monthly Reportと内容はほぼ同じだが設定したタグの情報も追加される S3から取得
ltAWS account numbergt-aws-cost-allocation-yyyy-mmcsv
Detailed Billing Report with Resources and Tags
Detailed billing reportと内容はほぼ同じだが設定したタグとリソースIDも追加される S3から取得
ltAWS account numbergt-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mmcsvzip
月ごとに異異なるファイルが出力力される
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
63
Billing Reportに含まれる主な項目(1)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
InvoiceID 〇 〇 〇 〇 請求アカウントID 〇 〇 〇 〇 子アカウントID 〇 〇 〇 〇 レコードタイプ 〇 〇 〇 〇 レコードID 〇 〇 〇 課金開始日時 〇 〇 課金終了日時 〇 〇 Invoice日時 〇 〇
アカウントおよびInvoice情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
64
Billing Reportに含まれる主な項目(2)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
プロダクトコード 〇 〇 プロダクト名 〇 〇 〇 〇 Seller of Record 〇 〇 利用タイプ 〇 〇 〇 〇 オペレーション 〇 〇 〇 〇 アベイラビリティゾーン
〇 〇 〇
リザーブドインスタンス
〇 〇
Rate ID 〇 〇 〇 〇
プロダクト利利用情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
65
Billing Reportに含まれる主な項目(3)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
サブスクリプションID
〇 〇
料金プランID 〇 〇 アイテム詳細 〇 〇 〇 〇 利用開始日時 〇 〇 〇 〇 利用終了日時 〇 〇 〇 〇
プロダクト利利用情報フィールドの続き
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
66
Billing Reportに含まれる主な項目(4)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
利用量 〇 〇 〇 〇 Blended Rate 〇 〇 〇 Blendedコスト 〇 〇 Unblended Rate 〇 〇 Unblendedコスト 〇 〇 トータルコスト 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
67
Billing Reportに含まれる主な項目(5)
Monthly Report
Detailed Billing Report
Monthly Cost Allocation Report
Detailed Billing Report with Resource and Tags
リソースID 〇 Cost Allocationタグ 〇 〇
利利用コスト情報フィールド
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
68
Monthly Reportとは
月々のAWSの利利用料料金金を各サービスごとに表示
Billing Consoleから取得可能
Consolidated Billingにより複数のアカウントの支払いを統合している場合は請求アカウントのみ取得可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
69
Monthly Cost Allocation Reportとは AWSの課金金を追跡まとめることが出来る機能
bull 1AWSリソースにタグ付け
bull 2Tag付けされたリソースの利利用量量をS3 bucket内のCSVレポートに出力力
ProductCode Operation AmazonEC2 RunInstances
Total userProject userOwner 1645 TestProject1 Bob
Project = TestProject1
Owner = Bob TagはKeyとValueからなる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
70
Cost Allocation and Taggingのメリット 好きなTag付けにより自由に項目追加が可能
bull Excelのピボットテーブル機能を使うと以下のように項目ごとに料料金金を合算できる
Total Cost13 userProject13 userOwner13 1013 Project113 Bob13
513 Project113 Susan13
1513 Project113 Susan13
3013 Project213 Mike13
2513 Project213 Bob13
行ラベル13 合計 Total Cost13 Project113 3013 Project213 5513
総計13 8513
行ラベル13 合計 Total Cost13 Project113 3013 Bob13 1013 Susan13 2013
Project213 5513 Bob13 2513 Mike13 3013
総計13 8513
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
71
Cost Allocation Reportに項目を載せる方法
1 Cost Allocation and Taggingを有効にする2 Cost Allocation Reportページへ移動3 載せたい項目(Key)を選択するKeyは既に使用済みのものをリストアップしている
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
72
Monthly Cost Allocation Reportの例例
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
73
Cost Allocation and Taggingの注意事項
Tag付け可能なAWSリソースbull EC2 Auto Scaling S3 EBS VPC CloudFormation RDS EMR
割り当てられるTagの数は1リソースに10個まで
Programmatic Billing Accessを有効にする必要あり
アカウントアクティビティページ上では表示されない
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
74
Detailed Billing Reportとは
1時間ごとのAWSの利利用料料金金を表示
Consolidated Billing利利用時は請求アカウントのレポートには子アカウントの利利用料料金金も表示される
オンデマンドおよびリザーブドインスタンスの利利用分析が可能
Blended rateとUnblended rateの価格の差異異によりどれだけディスカウントされているかを把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
75
emsp Detailed Billing Reportで出力力されるCSVファイルの例例
ReservedInstance
Blended Unblended rate Cost
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
76
Detailed Billing Reportの1行行の例例(一部を除く)
請求ID 12345678 (or Estimated) 支払いアカウントID 00000000000 リンクアカウントID 111111111111 アベイラビリティゾーン ap-northeast-1b 製品名 Amazon Elastic Compute
Cloud 利用タイプ APN1-BoxUsaget1micro オペレーション RunInstances Reserved Instance N 利用開始日時 20130116 150000 利用終了日時 20130116 160000
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
77
Detailed Billing Reportの1行行の例例(一部を除く)の続き
利用量 2 Blended rate 0009107 Blended cost 0018214 Unblended rate 0027 Unblended cost 0054
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
78
Detailed Billing Reportの注意事項
CSVレポートファイルが数百MBまたは数GBを越えることがあるbull Excel等で開けない場合があるbull DBにImport等する際にそのサイズを小さくするにはPaying Account Name等の毎回同じように表示される項目を含めないようにすると良良い
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
79
Detailed Billing Report with Resources and Tagsとは
Detailed Billing Reportの内容に加えAWSのサービスで利利用されるリソースのIDやTagを表示
リソースIDの例例bull EC2インスタンスの場合i-‐‑‒12345678bull EBSボリュームの場合vol-‐‑‒12345678bull RDSの場合arnawsrdsap-‐‑‒northeast-‐‑‒1123456789012dbmydb1
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
80
部門プロジェクトごとにかかるコストを分けるには
Tag付け可能なリソースにプロジェクトを判別できるTagを付けDetailed Billing Reportで管理理bull Tagが付与できないリソースに注意bull Tagは複数付与可能
bull 「システム名」「環境区分」「賦課部門」「プロジェクトコード」etc
Accountを分けてConsolidated Billingで集約管理理
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
81
Tagによるコスト分類の例例
Amazon EC2bull EC2インスタンスごとの1時間あたりの起動料料金金bull EC2インスタンスごとのアウトバウンドのデータ転送料料金金
Amazon EBSbull 作成されたEBSボリュームごとの容量量に対する料料金金bull 作成されたEBSボリュームごとのIO使用量量に対する料料金金
Amazon VPCbull VPN接続ごとの1時間あたりの接続料料金金
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
82
まとめ
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
83
まとめ
AWSは従量量課金金モデル
無料料利利用枠は多くのサービスで利利用可能
Consolidated Billingにより複数のアカウントの支払いを纏めることでボリュームディスカウント可能
CSV形式のBilling Reportを取得することでより詳細な課金金(見見積り)を把握可能
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
84
Billingに関するBest Practice
課金金情報へのアクセスを管理理するbull 課金金情報は親アカウントだけでアクセスするbull 利利用者はIAMユーザーでAWSを利利用する
Consolidated billingで一つのアカウントに課金金を集約bull 複数の「子アカウント」の課金金情報を一つのアカウントに集約して管理理する
Billing AlertとBilling Reportを使用するbull Amazon CloudWatchの通知を使用して課金金が一定額に達することを監視する
bull Amazon S3にCSVレポートを出力力し課金金状況を分析する
Trusted Advisorを活用してコスト最適化
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
85
Link
AWS Account Billing ドキュメントbull httpawsamazoncomjpdocumentationaccountbilling
AWS 料料金金体系の仕組みホワイトペーパーbull httpmediaamazonwebservicescomAWS_Pricing_Overviewpdf
AWSの課金金体系bull httpmediaamazonwebservicescomjpcostAWS-‐‑‒RatesSystem-‐‑‒JP_201310pdf
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
86
Appendix
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
87
Consolidated Billingの設定方法(1)
請求アカウント側のBilling Consoleでリクエストを送る
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
88
Consolidated Billingの設定方法(2)
子アカウントのメールアドレスを入力力し送信をクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
89
Consolidated Billingの設定方法(3)
子アカウント側で以下のEメールを受信するので含まれているリンクをクリック
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
90
Consolidated Billingの設定方法(4)
請求アカウントの情報を確認してAcceptする
以上で設定完了了
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
91
Consolidated Billing設定時の注意事項
子アカウントに送られたEメールのリンクをクリックすると以下のようなエラーメッセージが表示されることがある
bull これは既に該当する子アカウントとは別のAWSアカウントでログインしているためでありAWSマネージメントコンソールからログアウトした状態で再度度リンクをクリックすれば正しくAccept画面が出てくる
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
92
Trusted Advisorメールアドレスの登録
登録アドレスの削除はNULLで変更更を実施
管理理画面のメールアドレスの「Billing」にアドレス設定
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
93
Trusted Advisor Top画面
「通知設定」emsp をクリック
「Business」サポート以上の場合
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
94
通知設定画面
受信者のメールアドレスが設定されていない場合は「登録内容の変更更」からアドレスを登録
日本語を選択
「オペレーションに関する連絡先」をチェックemsp emsp 通信のアドレスに届く
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
copy 2012 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc
95
Detailed Billing Report 出力力項目一覧
httpdocsawsamazoncomawsaccountbillinglatestaboutv2detailedreportrefhtml
Recommended