This session walks through the mechanics of AWS bill computation and consolidated billing to help you understand your bill. AWS billing has many features to help you manage and control your costs in the AWS cloud environment including detailed billing reports, programmatic access, cost allocation, billing alerts, and IAM access. We provide an overview of these features and then demonstrate how to use and incorporate them into your own account setup.
9. Notification Center
•
•
•
•
•
Status of Billing Alerts
• Alarm on spending
threshold
Issues with payment methods
Outstanding charges
Free Tier eligibility
General notices regarding
your account or bill
10. Fully localized in 8 languages
•
•
•
•
•
•
•
•
English
German
Spanish
French
Japanese
Portuguese
Korean
Chinese
15. Consolidated Billing
•
Receive a single bill for all
charges incurred across all
linked accounts
• Share RI discounts
• Combine tiering benefits
• View & manage linked
accounts
• Add additional accounts
Account 1
Payer Bill
AccountsBill
Regular 1-4
Account 2
Regular Bill
Account 3
Regular Bill
Share RI Discounts
Account 4
Regular Bill
Combine Tiering
17. Payment History
•
•
•
List successful transactions
Charges and refunds match
your credit card statement
Central place to download
all invoices (pdf)
18. Payments Due
•
Amount Past Due
•
•
Amount Due
•
•
Charges within net terms
Outstanding Credit
•
•
•
Charges past net terms
Invoice customers
Credits need to be applied to
future charges
Pay Now
•
Available for failed credit card
charges
23. Bucket Permissions
•
•
Bucket policy generator
Allows our reporting engine to
-
•
•
Confirm your bucket’s permissions
And also write to that bucket
We won’t write to overly permissive
buckets
It is recommend to use the exact
policy generated
26. Report Types
•
Monthly report
-
•
Detailed billing report
-
•
Grouped by product
Hourly grain
Cost allocation report
-
•
Grouped by product
Monthly grain
Grouped by tag key
Monthly grain
DBR with resources and tags
-
Grouped by resourceId
Hourly grain
Also has tags on each row
27. Manage Report Tags
•
•
•
Filter tags by included/excluded
Search tags by key name
Active tags
-
Cost allocation report grouping
Included in your detailed billing
report with resources and tags
28. Finding your reports
• Located in your Amazon S3 bucket
– Monthly report
•
<AWS account number>-aws-billing-csv-yyyy-mm.csv
– Detailed billing report
•
<AWS account number>-aws-billing-detailed-line-items-yyyy-mm.csv.zip
– Cost allocation report
•
<AWS account number>-aws-cost-allocation-yyyy-mm.csv
– DBR with resources and tags
•
<AWS account number>-aws-billing-detailed-line-items-with-resources-and-tags-yyyy-mm.csv.zip
30. Goals
1. Eliminate ambiguity about DBRs
–
–
What are the four billing reports?
What’s inside of each report?
2. Enable you to answer cost questions
–
Using Monthly, Detailed, Cost Allocation and Detailed w/
Resources and Tags Reports
31. Basic Data
Advanced Data
Monthly
Monthly Report
Cost Allocation
Report
Hourly
The Four Billing Reports
Detailed Billing
Report
Detailed Billing
Report w/ Resources
and Tags
35. Monthly Report
Monthly
Basic Data
Monthly Report
•
•
•
•
CSV format
Monthly granularity
Aggregated by product
Same data as your Invoice
<AWS account #>-aws-billing-csv-yyyy-mm.csv
36. Example Monthly Report
Line Item
RunInstances
RunInstances
RunInstances
LoadBalancing
RunInstances
LoadBalancing
Cost
Rate CostBeforeTax
$0.01
$0.47
$0.00
$0.00
$0.06
$0.36
$0.09
$0.00
$0.00
$0.00
$0.11
$0.00
$0.01
$0.40
$0.00
$0.00
$0.10
$6.79
$0.06
$21.54
$0.09
$0.04
$0.03
$43.08
$0.13
$0.07
$0.00
$0.00
$0.01
$0.56
$0.00
$0.00
$0.11
$0.19
$0.01
$1.93
$0.06
$86.16
$0.00
$0.00
$0.02
$21.48
$0.03
$43.08
$0.12
$48.48
$0.03
$8.98
$0.13
$10.31
$0.52
$244.40
$0.01
$16.93
$0.03
$43.08
$0.01
$0.00
$0.09
$29.20
Rate
RunInstances
Usage Quantity
47
0.00471905
6
0.00053194
9878
0.00003376
40
2
67.86110956
359
0.47127815
1436
0.54326496
0.16240232
561311
660
1.7335875
193442
1436
932
1432
1436
404
359
82.45148478
470
1693140
1436
0.00005498
324.4072553
Usage Quantity
Operation
Operation
UsageType
Requests-Tier2
DataTransfer-In-Bytes
Requests-Tier1
DataTransfer-Out-Bytes
CW:Requests
TimedStorage-ByteHrs
Requests-Tier1
USW2-Requests-Tier1
EBS:VolumeUsage
BoxUsage:c1.medium
DataTransfer-Out-Bytes
BoxUsage
EBS:SnapshotUsage
DataTransfer-In-Bytes
Requests-Tier2
CW:Requests
TimedStorage-ByteHrs
Requests-Tier1
BoxUsage:c1.medium
CW:Requests
BoxUsage
BoxUsage
BoxUsage:m1.xlarge
LoadBalancerUsage
EBS:SnapshotUsage
BoxUsage:m1.xlarge
Requests-Tier1
BoxUsage:c1.medium
DataProcessing-Bytes
DataTransfer-Out-Bytes
Usage Type
Product
RateId ItemDescription
ProductCode
805167 $0.01 per 10,000 GET and all other requests
AmazonS3
800029 $0.000 per GB - data transfer in per month
AWSDataTransfer
796850 $0.06 per 100,000 Amazon SNS API Requests per month thereafter
AmazonSNS
799999 $0.090 per GB - next 40 TB / month data transfer out
AWSDataTransfer
794470 $0.00 per request - first 1,000,000 requests
AmazonEC2
805187 $0.110 per GB - next 49 TB / month of storage used
AmazonS3
805207 $0.01 per 1,000 PUT, COPY, POST, or LIST requests
AmazonS3
796889 First 100,000 Amazon SNS API Requests per month are free
AmazonSNS
795828 $0.10 per GB-month of provisioned storage
AmazonEC2
18427 $0.06 per High-CPU Medium Instance (c1.medium) instance-hour
AmazonEC2
799999 $0.090 per GB - next 40 TB / month data transfer out
AWSDataTransfer
18463 $0.03 per Small Instance (m1.small) instance-hour
AmazonEC2
793970 $0.125 per GB-Month of snapshot data stored
AmazonEC2
800029 $0.000 per GB - data transfer in per month
AWSDataTransfer
805167 $0.01 per 10,000 GET and all other requests
AmazonS3
794470 $0.00 per request - first 1,000,000 requests
AmazonEC2
805187 $0.110 per GB - next 49 TB / month of storage used
AmazonS3
805207 $0.01 per 1,000 PUT, COPY, POST, or LIST requests
AmazonS3
18427 $0.06 per High-CPU Medium Instance (c1.medium) instance-hour
AmazonEC2
794470 $0.00 per request - first 1,000,000 requests
AmazonEC2
809956 $0.015 per Small EMR Instance (m1.small) Instance-hour
ElasticMapReduce
18463 $0.03 per Small Instance (m1.small) instance-hour
AmazonEC2
809792 $0.12 per Extra Large EMR Instance (m1.xlarge) instance-hour
ElasticMapReduce
795287 $0.025 per LoadBalancer-hour (or partial hour)
AmazonEC2
793970 $0.125 per GB-Month of snapshot data stored
AmazonEC2
794668 $0.520 per M1 Standard Extra Large (m1.xlarge) Linux/UNIX instance-hour (or partAmazonEC2
805207 $0.01 per 1,000 PUT, COPY, POST, or LIST requests
AmazonS3
809803 $0.03 per High-CPU Medium EMR Instance (c1.medium) instance-hour
ElasticMapReduce
794128 $0.008 per GB Data Processed by the LoadBalancer
AmazonEC2
799999 $0.090 per GB - next 40 TB / month data transfer out
AWSDataTransfer
41. Monthly Report: Considerations
Monthly
Basic Data
Monthly Report
• Changing Rates result in
more Line Items, e.g.
– AWS lowers cost
– You purchase Reserved Capacity
• This is true for all reports!
– I.e. two rates during the month
will result in 2x line items
45. Detailed Billing Report
Hourly
Basic Data
Detailed Billing
Report
•
•
•
•
CSV format
Hourly granularity
Aggregated by product
x720 or x744 more records
than Monthly Report
<AWS account #>-aws-billing-detailed-line-items-yyyy-mm.csv.zip
48. Line Item
+ Availability Zone
+ Reserved
Instance Flag
Blended Cost
Blended Rate
Usage Quantity
Operation
Usage Type
Product
Same as Monthly Report
+ UnBlended Rate and Cost
+ Hour-by-Hour
50. Detailed Billing Report: Considerations
Hourly
Basic Data
Detailed Billing
Report
• Lots of data – use PowerPivot
or import into your Data
Warehouse
• Sum of allocated cost is not
always equal to total on
Invoice. This is due to rounding
differences b/w blended and
unblended cost
57. Cost Allocation Report
Monthly
Advanced Data
Cost Allocation
Report
•
•
•
•
CSV format
Monthly granularity
Aggregated by product first
Then aggregated by tags
<AWS account #>-aws-cost-allocation-yyyy-mm.csv
58. Remember? Monthly Report:
Line Item
RunInstances
RunInstances
RunInstances
LoadBalancing
RunInstances
LoadBalancing
Cost
Rate CostBeforeTax
$0.01
$0.47
$0.00
$0.00
$0.06
$0.36
$0.09
$0.00
$0.00
$0.00
$0.11
$0.00
$0.01
$0.40
$0.00
$0.00
$0.10
$6.79
$0.06
$21.54
$0.09
$0.04
$0.03
$43.08
$0.13
$0.07
$0.00
$0.00
$0.01
$0.56
$0.00
$0.00
$0.11
$0.19
$0.01
$1.93
$0.06
$86.16
$0.00
$0.00
$0.02
$21.48
$0.03
$43.08
$0.12
$48.48
$0.03
$8.98
$0.13
$10.31
$0.52
$244.40
$0.01
$16.93
$0.03
$43.08
$0.01
$0.00
$0.09
$29.20
Rate
RunInstances
Usage Quantity
47
0.00471905
6
0.00053194
9878
0.00003376
40
2
67.86110956
359
0.47127815
1436
0.54326496
0.16240232
561311
660
1.7335875
193442
1436
932
1432
1436
404
359
82.45148478
470
1693140
1436
0.00005498
324.4072553
Usage Quantity
Operation
Operation
UsageType
Requests-Tier2
DataTransfer-In-Bytes
Requests-Tier1
DataTransfer-Out-Bytes
CW:Requests
TimedStorage-ByteHrs
Requests-Tier1
USW2-Requests-Tier1
EBS:VolumeUsage
BoxUsage:c1.medium
DataTransfer-Out-Bytes
BoxUsage
EBS:SnapshotUsage
DataTransfer-In-Bytes
Requests-Tier2
CW:Requests
TimedStorage-ByteHrs
Requests-Tier1
BoxUsage:c1.medium
CW:Requests
BoxUsage
BoxUsage
BoxUsage:m1.xlarge
LoadBalancerUsage
EBS:SnapshotUsage
BoxUsage:m1.xlarge
Requests-Tier1
BoxUsage:c1.medium
DataProcessing-Bytes
DataTransfer-Out-Bytes
Usage Type
Product
RateId ItemDescription
ProductCode
805167 $0.01 per 10,000 GET and all other requests
AmazonS3
800029 $0.000 per GB - data transfer in per month
AWSDataTransfer
796850 $0.06 per 100,000 Amazon SNS API Requests per month thereafter
AmazonSNS
799999 $0.090 per GB - next 40 TB / month data transfer out
AWSDataTransfer
794470 $0.00 per request - first 1,000,000 requests
AmazonEC2
805187 $0.110 per GB - next 49 TB / month of storage used
AmazonS3
805207 $0.01 per 1,000 PUT, COPY, POST, or LIST requests
AmazonS3
796889 First 100,000 Amazon SNS API Requests per month are free
AmazonSNS
795828 $0.10 per GB-month of provisioned storage
AmazonEC2
18427 $0.06 per High-CPU Medium Instance (c1.medium) instance-hour
AmazonEC2
799999 $0.090 per GB - next 40 TB / month data transfer out
AWSDataTransfer
18463 $0.03 per Small Instance (m1.small) instance-hour
AmazonEC2
793970 $0.125 per GB-Month of snapshot data stored
AmazonEC2
800029 $0.000 per GB - data transfer in per month
AWSDataTransfer
805167 $0.01 per 10,000 GET and all other requests
AmazonS3
794470 $0.00 per request - first 1,000,000 requests
AmazonEC2
805187 $0.110 per GB - next 49 TB / month of storage used
AmazonS3
805207 $0.01 per 1,000 PUT, COPY, POST, or LIST requests
AmazonS3
18427 $0.06 per High-CPU Medium Instance (c1.medium) instance-hour
AmazonEC2
794470 $0.00 per request - first 1,000,000 requests
AmazonEC2
809956 $0.015 per Small EMR Instance (m1.small) Instance-hour
ElasticMapReduce
18463 $0.03 per Small Instance (m1.small) instance-hour
AmazonEC2
809792 $0.12 per Extra Large EMR Instance (m1.xlarge) instance-hour
ElasticMapReduce
795287 $0.025 per LoadBalancer-hour (or partial hour)
AmazonEC2
793970 $0.125 per GB-Month of snapshot data stored
AmazonEC2
794668 $0.520 per M1 Standard Extra Large (m1.xlarge) Linux/UNIX instance-hour (or partAmazonEC2
805207 $0.01 per 1,000 PUT, COPY, POST, or LIST requests
AmazonS3
809803 $0.03 per High-CPU Medium EMR Instance (c1.medium) instance-hour
ElasticMapReduce
794128 $0.008 per GB Data Processed by the LoadBalancer
AmazonEC2
799999 $0.090 per GB - next 40 TB / month data transfer out
AWSDataTransfer
65. Charge-Backs: Choose Fields
Rows Labels:
user:Cost Center (tag)
ProductCode
ItemDescription
Values:
Sum of CostBeforeTax
Sum of TaxAmount
Sum of TotalCost
69. Joe: Enterprise
• How much capacity do I need
to reserve?
• I need to know how much
each resource cost me!
70. DBR w/ Resources and Tags
Advanced Data
Hourly
Monthly
Basic Data
Detailed Billing
Report w/ Resources
and Tags
71. DBR w/ Resources and Tags
Hourly
Advanced Data
Detailed Billing
Report w/ Resources
and Tags
•
•
•
•
•
CSV format
By resource
Hourly granularity
Has tags
Most detailed – lots of data!
<AWS account #>-aws-billing-detailed-line-items-withresources-and-tags-yyyy-mm.csv.zip
72. UnBlended Cost
UnBlended Rate
Blended Cost
Blended Rate
Usage Quantity
Operation
Usage Type
Product
Hour-by-Hour
+ Availability Zone
+ Reserved
Instance Flag
Remember? Detailed Billing Report:
73. UnBlended Cost
UnBlended Rate
Blended Cost
Blended Rate
Usage Quantity
Operation
Usage Type
Product
Hour-by-Hour
+ Availability Zone
+ Reserved
Instance Flag
+ AWS Resource ID
Same as Detailed Billing Report
+ Your Tags
74. DBR w/ Resources & Tags: Considerations
Hourly
Advanced Data
Detailed Billing
Report w/ Resources
and Tags
• Lots of data – pull into your
Data Warehouse to do
detailed analysis
• Any change in Rates (e.g.
linking/unlinking, RI
subscriptions) produces
even more data
75. Recap: Billing Reports
Two Basic Reports
Two Advanced Reports
Monthly Report
Cost Allocation Report
– Monthly granularity
– Product level aggregation
Detailed Billing Report
– Hourly granularity
– Product level aggregation
– x720 or x744 more lines
than Monthly Report!
– Monthly granularity
– Product, tag key aggregation
Detailed w/ Resources & Tags
–
–
–
–
Hourly granularity
Grouped by resource
Has tags
Lots and lots of data!
80. Billing reports: how are they generated?
Aggregate
Metering
Records
Calculate
Line Items
Compose
Reports
81. What is Usage Record?
•
•
•
•
Product
Usage Type
Operation (opt)
Quantity
EC2, S3, …
Micro Instance, TimedStorage, …
RunInstances, DataTransfer, …
1, 0.007, …
82. Billing reports: how are they generated?
Aggregate
Metering
Records
Calculate
Line Items
Compose
Reports
83. What’s Rate?
• Defines how much a unit of usage costs
– For each AWS product (more than 30), and
– For each unique usage type and operation, and
– For each AWS region (9 of them)
• Examples
– $0.004 per 10,000 requests (S3) in us-east-1
– $0.020 per Micro Instance instance-hour (EC2) in uswest-2
84. Billing reports: how are they generated?
Aggregate
Metering
Records
Calculate
Line Items
Compose
Reports
85. What are Tags?
• You define key/value pairs
(up to 10 pairs per resource)
• Enable them under
Manage Tags in Console!
• Tags become columns in
Cost Allocation and DBR w/
Resources and Tags Reports
86. Billing reports: how are they generated?
Aggregate
Metering
Records
Calculate
Line Items
Compose
Reports
87. Line Items: Two Steps to Calculate
• Step 1: Count Usage
– For each unique rate (Product, Usage, Operation,
Region)
• Step 2: Calculate Lowest Cost Bill
– Apply Free Tier Rates
– Apply Reserved Capacity Rates
– Apply On-Demand Rates