Top Banner
@cloudability
56

Mastering the fundamentals of AWS billing 8-20-15

Apr 08, 2017

Download

Technology

Cloudability
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

Page 2: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

AWS Billing Fundamentals

Page 3: Mastering the fundamentals of AWS billing 8-20-15

0

45

90

135

180D

ev/T

est

POC

App

#1 App

#3

App

#2

Exec team starts really caring

Load

test

A story of growth

Page 4: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

About Us

Cloud Cost Management & Analytics

$2B+ in tracked AWS costs

Page 5: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

Dashboards Spend Alerts

API Reports

Cloudwatch EC2 Usage API

Detailed Billing Report Files

We generate custom dashboards, reports, recommendations and alerts

We retrieve your data using read only IAM credentials

AWS provides complex billing and usage data

We organize & analyze your cost & usage data

How It Works

Page 6: Mastering the fundamentals of AWS billing 8-20-15

Visibility Allocation

Efficiency

Savings

Unit Cost

Cloud Cost Management Lifecyle

Stage I: Visibility (No Surprises)

Stage II: Allocation (Where are the dollars going?)

Stage III: Efficiency (Don’t run cloud like a datacenter)

Stage IV: Savings (Lower hourly rate with RIs)

Stage V: Unit Cost (Tying spending to margins)

Page 7: Mastering the fundamentals of AWS billing 8-20-15

@cloudability7

How does AWS charge?

Page 8: Mastering the fundamentals of AWS billing 8-20-15

@cloudability8

cost = usage x rate

Page 9: Mastering the fundamentals of AWS billing 8-20-15

@cloudability9

cost = usage x rate

Page 10: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability10

Page 11: Mastering the fundamentals of AWS billing 8-20-15

@cloudability11

cost = usage x ratePay for instances “by _________” Instance Hour … data transfer per “GB”

Pay for EBS per “_______” GB Month … IO per “I/O requests” …Snapshots per “GB Month”

Pay for S3 storage per “________” Byte (GB) Hour … put, copy, post, list per “request” … data transfer per “GB”

Requires Engineering/Ops work

Page 12: Mastering the fundamentals of AWS billing 8-20-15

@cloudability12

EC2 (compute) spending generally accounts for80%+ of the bill…

(Followed by EBS, S3, RDS, etc.)

Page 13: Mastering the fundamentals of AWS billing 8-20-15

@cloudability13

cost = usage x rate

Page 14: Mastering the fundamentals of AWS billing 8-20-15

๏ cloudability.com14

EC2 Pricing Options

Page 15: Mastering the fundamentals of AWS billing 8-20-15

@cloudability15

cost = usage x ratePay as you go with On-demand or “BoxUsage”

Commit to lower rates with Reserved Instances “HeavyUsage” Architect for instability with Spot Instances “SpotUsage”

Single tenancy with Dedicated Instances “DedicatedUsage” etc

Can be autonomously controlled by Finance without engineering work

Page 16: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability16

Let’s look under the hood at the Detailed Billing Report (DBR)…

Page 17: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability

Originating account for the charges

Linked Account

Data Sources

AWS Product Name e.g. Amazon Elastic Compute Cloud

Product NameThe type of usage charge applied e.g. heavyusage:m3.large

Usage TypeA human readable field showing the resource type used as well as the rate applied

Item Description

17

Key Dimensions in the DBR

Page 18: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability

Total Blended Cost for the time period, represented in Cloudability as “Total Invoiced Cost”

Blended Cost

Data Sources

Total Unblended Cost for the time period

Unblended CostAmount of individual units used of that resource type

Usage QuantityUnblended rate for a single unit of the resource type

Unblended Rate

18

Key Metrics in the DBR

Page 19: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability

Data Sources

19

Example report in Cloudability

Page 20: Mastering the fundamentals of AWS billing 8-20-15

๏ cloudability.com

Data Sources

20

More info on data sources:

1. http://blog.cloudability.com/aws-101-data-sources/

Page 21: Mastering the fundamentals of AWS billing 8-20-15

๏ cloudability.com

Data Sources

21

More info on unblended rates:

1. https://support.cloudability.com/hc/en-us/articles/206972637-Vlog-How-to-calculate-AWS-blended-and-unblended-rates

Page 22: Mastering the fundamentals of AWS billing 8-20-15

Visibility

Allocation Efficiency

Savings

Unit Cost

I. Cost visibility

Page 23: Mastering the fundamentals of AWS billing 8-20-15

๏ cloudability.com23

Transaction Types in Your BillStage I: Basic Cost Visibility

Usage On-demand instances Storage Data Transfer

Recurring Charges Prepaid Monthly RI Hours Support Charges

One-Time Charges RI Sign-Up Charges Direct Connect

Page 24: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

Cost Visibility

Create custom dashboards and alerts

Page 25: Mastering the fundamentals of AWS billing 8-20-15

Visibility

Allocation Efficiency

Savings

Unit Cost

II. Allocation

Page 26: Mastering the fundamentals of AWS billing 8-20-15

@cloudability @cloudability

Tools for splitting costs

Page 27: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

@cloudability

1. Tags are key value pairs (key = value) 2. You can apply up to 10 tags per resource 3. Tag keys and values are case sensitive

#1: TagsTools for splitting costs

Page 28: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

@cloudability

#2: Linked AccountsUse linked accounts to split up things that really matter

Tools for splitting costs

Page 29: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

Cost Allocation

Spending segmented by tags and accounts

Customize report columns

Page 30: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

Cost Allocation

Segment spending by tags and accounts

Page 31: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

@cloudability

Tag everything you can

Page 32: Mastering the fundamentals of AWS billing 8-20-15

Visibility

Allocation Efficiency

Savings

Unit Cost

III. Efficiency

Page 33: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability

hours in a week

168

Page 34: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability

nights & weekends

108

Page 35: Mastering the fundamentals of AWS billing 8-20-15

@cloudability35

Don’t run the cloud like a data center: 65% of the hours in a month

are nights and weekends

Page 36: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

Usage Optimization

Find unused and underutilized instances

Page 37: Mastering the fundamentals of AWS billing 8-20-15

Visibility

Allocation Efficiency

Savings

Unit Cost

IV. Savings

Page 38: Mastering the fundamentals of AWS billing 8-20-15

@cloudability38

Reserved Instances “Reservations” require no engineering work, enabling finance to autonomously reduce costs by 30-60% over on-demand

Page 39: Mastering the fundamentals of AWS billing 8-20-15

@cloudability @cloudability

Cost Savings Capacity Reservation

Reservations have two parts

Page 40: Mastering the fundamentals of AWS billing 8-20-15

@cloudability @cloudability

An RI gives you 744 coupons that can be applied a relevant instance in any given hour

Page 41: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

RI Mechanics

What Makes Up a Reservation?

InstanceRI Term RI Type

Instance Family Size OS Location (AZ)

m1 large Linux us-east-1a 1 year No upfront

r3 8xlarge RHEL us-west-2b 3 years Partial upfront

m3 medium Windows ap-northeast-1b 1 year All upfront

Page 42: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

RI Mechanics

The difference is in the payment structure

Upfront Fee Monthly Fee Savings

No upfront NO YES 28.6%

Partial upfront YES YES 38.1%

All upfront YES NO 39.4%

m3.medium:us-east:linux

Page 43: Mastering the fundamentals of AWS billing 8-20-15

@cloudability @cloudability

All RI types are a commitment to pay for full utilization (even if you don’t use it)

Page 44: Mastering the fundamentals of AWS billing 8-20-15

Reservations Infrastructure

Page 45: Mastering the fundamentals of AWS billing 8-20-15

@cloudability

RI Portfolio Management

Reserved Instance recommendations and analysis

Page 46: Mastering the fundamentals of AWS billing 8-20-15

Visibility

Allocation Efficiency

Savings

Unit Cost

V. Unit Cost

Page 47: Mastering the fundamentals of AWS billing 8-20-15

Why does unit cost matter?

0

45

90

135

180

Dev

/Tes

t

POC

App

#1 App

#3

App

#2

Exec team starts really caring

Hic

cup

Page 48: Mastering the fundamentals of AWS billing 8-20-15

An increasing bill isn’t necessarily a bad thing

0

45

90

135

180

The bill still goes up!

Stag

e III

Efficiency

Stag

e IV

RIs

Page 49: Mastering the fundamentals of AWS billing 8-20-15

Unit cost is cost per X

Page 50: Mastering the fundamentals of AWS billing 8-20-15

cost per subscribercost per pageview cost per customer cost per API call

Page 51: Mastering the fundamentals of AWS billing 8-20-15

Focus on reducing unit cost, even at total cost grows

0

30

60

90

120

Unit cost Total cost

Page 52: Mastering the fundamentals of AWS billing 8-20-15

Unit cost =total cost / business metric

Page 53: Mastering the fundamentals of AWS billing 8-20-15

$1000 / 1000 customers =$1 unit cost

Page 54: Mastering the fundamentals of AWS billing 8-20-15

Visibility Allocation

Efficiency

Savings

Unit Cost

Cloud Cost Management Lifecyle

Stage I: Visibility (No Surprises)

Stage II: Allocation (Where are the dollars going?)

Stage III: Efficiency (Don’t run cloud like a datacenter)

Stage IV: Savings (Lower hourly rate with RIs)

Stage V: Unit Cost (Tying spending to margins)

Page 55: Mastering the fundamentals of AWS billing 8-20-15

๏ @cloudability

The Road Ahead

55

1) AWS data is complex. Get your hands on your DBR file to start understanding what’s in it.

2) Tagging is hard. Sit down with key stakeholders and agree a basic taxonomy (3-5 required tags), consider linked accounts for most important items.

3) Instances are easy to spin up. Start sharing reports of underutilized instances to spark a conversation about potential waste.

4) RIs are frequently misunderstood. Educate yourself then make a small, uncontroversial purchase. Buy, Measure, Learn each month.

5) The bill going up may not be a bad thing. Start setting expectations with your team that more apps & more traffic mean more dollars. That may be OK in the context of margins.

Things to remember (and do) after this webinar

Page 56: Mastering the fundamentals of AWS billing 8-20-15

@cloudability @cloudability