SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Nathan Besh
Cost Lead, Well-Architected
Cost Optimisation
Instructor Led Lab
natbesh@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today
• It’s 101 Focused
• I Assume Very Little Knowledge/Experience
• Mix of Information and Exercises
• If You’re Advanced = Train the Trainer
• No Coding or External Tools/Programs
• Everything Must be a few Clicks in the Console
• You can use your own account (need IAMCreate permission)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Zero to Hero (your type of hero)
• Tools and Knowledge to Gather Information
• Present it with Business and Financial Meaning
• Feedback - 5 Stars Rating?
• Send me Your Savings = Bill in 1 Month, Bill in 3 Months
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost of Optimisation
• Cost of Collection, Analysis, Implementation
• You MUST Invest in Time and $ (wisely)
• Short, Fast Cycles of Cost Management
• Look for High Spend & High Return
• Top 10’s
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Well-Architected Approach
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Well-Architected Approach
• Governance
• Pricing Models
• Resource Sizing
• Monitoring Cost and Usage
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Governance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Governance: Control Who Can do What
Provide and Control Access
• IAM Policies
• Users
• Groups
• (Limits)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #1
Policies, Users and Groups
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #2
Policies – Access Restriction
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Governance: Inform - Alerts
Alert for Anomalies
Alternative to Policies/Restrictions
AWS Budgets
• Set actual & forecasted budgets
• Track cost, usage & RI utilisation
• Alert when forecasted or actuals exceed pre-defined limits
• Refine by Accounts, Tags, Instances… <~10 billing columns>
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Governance: CloudWatch Billing Alert
Prefer not to use this…
• Creates an SNS Topic
• Requires additional access
• More Management/Operational Cost
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #3
Budgets - Alerts
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Governance: AWS Budgets
Usage budget
• Good alternative for limits (notify, don’t restrict)
• Specify Service, Instance Type and Usage Type (10 billing
columns)
RI Budget
• Uses % by hrs, not $ or absolute hrs
• Track forecasted utilisation of high value RI’s
• What % should I use?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models
• On Demand
• Reserved Capacity/Instances
• Spot
• Region Cost
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models: Reserved & Loss Aversion
• People Prefer to Avoid Losses rather than Acquiring the
Equivalent Win
• What is the Actual Cost of Getting it Wrong?
• Average 18.54 concurrent instances: Cost: $8,060.788
• How Wrong can I go & Still Win?
• 25.99 PUF RI’s
• 26.52 FUF RI’s
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models: Reserved – Assess Risk
Break Even
100
%
Fully Paid
Assume 70%
Fully Paid DayRI Utilisation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models: Which Model?
NUF vs PUF vs
FUF
*Prices as at 24th Apr 2018
- Standard vs Convertible
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #4
Pricing Models – RI Report
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models: RI Report
• Purchase the Lower Size When Flexible
• Decide at Speed and Scale
• Max/Min – What’s the spread?
• Average – Close to Max? Close to Min?
• Sort by Break Even (sooner = lower risk)
• Then Sort by Monthly Savings (highest return)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pricing Models: RI Reports – Change in Usage
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #5
Pricing Models – RI Report (Pt2)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Resource Sizing
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Resource Sizing: Requirements
• Utilise Key Instance Attributes
• CPU
• Memory
• Network
• Additional Metrics: Storage (usage & size)
• Customised/DIY Solutions:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html
• Enterprise/Company Wide Solution Aligned
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #6
Resource Sizing – CloudWatch
Dashboards
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Resource Sizing: Trusted Advisor
• Requires Business Support ($100/month min, % of bill)
• Currently ~60 checks per account
• Multiple Services Supported (RDS, Redshift)
• Does NOT Check Memory
• 5 categories:
• Cost
• Performance
• Security
• Fault Tolerance
• Service Limits
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #7
Resource Sizing – Trusted Advisor
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost
• Monitor Your Usage as You Would System Uptime
• Audience, Tooling will Vary
• Higher Level = Cost Explorer
• Lower Level = Cost and Usage Reports
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #8
Monitor Cost – Cost Explorer
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost: RI Utilisation
• Shows “Hours”, not Cost (t2.micro vs ds2.8xl hours?)
• Need $ - spreadsheet vlookup/conversion
• T, M, C Families: Large = x$0.1, xlarge = x$0.2, 2xl = x$0.4….
• P, G, X, R, I, H, D Families: Add additional multiplier
• Set Utilization Target = Fully Paid Day (100% = unnecessary concerns)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost: RI Utilisation
Fully Paid Day – Rough Estimates
Discount Level:
T2’s = 41%
M5’s = 39%
M4’s = 41%
C5’s = 39%
G3’s = 35%
F1’s = 36%
X1’s = 41%
R4’s = 40%
I3’s = 35%
H1’s = 35%
D2’s = 50%
P2’s = 35%
T2, M5, C5, M4, X1, R4 = 40% Discount
G3, F1, I3, H1, P2 = 35% Discount
D2 = 50% Discount
T2, M5, C5, M4, X1, R4 = 60% Utilisation
G3, F1, I3, H1, P2 = 65% Utilisation
D2 = 50% Utilisation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost
With Depth
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost: Billing Reports
• Detailed! (Up to Billions of Lines)
• Data Source for Many 3rd Party Tools
• Hourly Granularity
• Everything, Everyone, Anytime, Anywhere = 1 File
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #9
Monitor Cost – Billing Reports
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost: Billing Report Analysis
• Scalable (Over a Billion Lines)
• Repeatable – Columns Change (Especially Tags)
• Low Maintenance (Serverless)
• Familiar/Popular Access Method (ANSI SQL)
• Athena & AWS Glue
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #10
Monitor Cost – AWS Glue & Athena
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost: SQL
• SQL – Structured Query Language, databases
• Athena = ANSI SQL (standards based, lots of doco)
• Basic structure:
Select <column name>, <column name> from table
Were <condition>
Group by <column name>
Order by <column name> [asc | desc]
Limit <rows>
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor Cost: Using Athena
• Everything is “string”, must use cast to convert for
operations.
lineitem/unblendedcost = “string”, should be “double”
sum(lineitem/unblendedcost) = error
sum(cast("lineitem/unblendedcost" AS DOUBLE)) as cost
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Exercise #11
Monitor Cost – Queries
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost Lead, Well-Architected
natbesh@amazon.com
Nathan Besh
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete the session survey in
the Summit App.
(and send me some bills!)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thankyou

More Related Content

What's hot

Derisking Enterprise Cloud Adoption
Derisking Enterprise Cloud Adoption Derisking Enterprise Cloud Adoption
Derisking Enterprise Cloud Adoption
Amazon Web Services
 
Introduction to the Security Perspective of the Cloud Adoption Framework
Introduction to the Security Perspective of the Cloud Adoption FrameworkIntroduction to the Security Perspective of the Cloud Adoption Framework
Introduction to the Security Perspective of the Cloud Adoption Framework
Amazon Web Services
 
Accelerate Innovation and Maximize Business Value with Serverless Application...
Accelerate Innovation and Maximize Business Value with Serverless Application...Accelerate Innovation and Maximize Business Value with Serverless Application...
Accelerate Innovation and Maximize Business Value with Serverless Application...
Amazon Web Services
 
Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...
Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...
Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...
Amazon Web Services
 
Well-Architected: Cost Optimization Instructor Led Lab.pdf
Well-Architected: Cost Optimization Instructor Led Lab.pdfWell-Architected: Cost Optimization Instructor Led Lab.pdf
Well-Architected: Cost Optimization Instructor Led Lab.pdf
Amazon Web Services
 
Database Week San Francisco: Lab-Managed Database Basics
Database Week San Francisco: Lab-Managed Database BasicsDatabase Week San Francisco: Lab-Managed Database Basics
Database Week San Francisco: Lab-Managed Database Basics
Amazon Web Services
 
Nirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdf
Nirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdfNirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdf
Nirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdf
Amazon Web Services
 
When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...
When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...
When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...
Amazon Web Services
 
Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...
Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...
Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...
Amazon Web Services
 
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Amazon Web Services
 
High Performance Computing Grid on AWS
High Performance Computing Grid on AWSHigh Performance Computing Grid on AWS
High Performance Computing Grid on AWS
Amazon Web Services
 
Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...
Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...
Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...
Amazon Web Services
 
Landing zones: Creating a Foundation for Your AWS Migrations
Landing zones: Creating a Foundation for Your AWS MigrationsLanding zones: Creating a Foundation for Your AWS Migrations
Landing zones: Creating a Foundation for Your AWS Migrations
Ali Asgar Juzer
 
The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...
The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...
The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...
Amazon Web Services
 
Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018
Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018
Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018
Amazon Web Services
 
Keynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practicedKeynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practiced
AWS User Group Bengaluru
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
AWS User Group Bengaluru
 
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Amazon Web Services
 
Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...
Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...
Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...
Amazon Web Services
 
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Amazon Web Services
 

What's hot (20)

Derisking Enterprise Cloud Adoption
Derisking Enterprise Cloud Adoption Derisking Enterprise Cloud Adoption
Derisking Enterprise Cloud Adoption
 
Introduction to the Security Perspective of the Cloud Adoption Framework
Introduction to the Security Perspective of the Cloud Adoption FrameworkIntroduction to the Security Perspective of the Cloud Adoption Framework
Introduction to the Security Perspective of the Cloud Adoption Framework
 
Accelerate Innovation and Maximize Business Value with Serverless Application...
Accelerate Innovation and Maximize Business Value with Serverless Application...Accelerate Innovation and Maximize Business Value with Serverless Application...
Accelerate Innovation and Maximize Business Value with Serverless Application...
 
Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...
Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...
Developing your Cloud Center of Excellence using CloudHealth - DEM05-S - Chic...
 
Well-Architected: Cost Optimization Instructor Led Lab.pdf
Well-Architected: Cost Optimization Instructor Led Lab.pdfWell-Architected: Cost Optimization Instructor Led Lab.pdf
Well-Architected: Cost Optimization Instructor Led Lab.pdf
 
Database Week San Francisco: Lab-Managed Database Basics
Database Week San Francisco: Lab-Managed Database BasicsDatabase Week San Francisco: Lab-Managed Database Basics
Database Week San Francisco: Lab-Managed Database Basics
 
Nirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdf
Nirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdfNirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdf
Nirav Kothari: Well-Architected - Operational Excellence Instructor Led Lab.pdf
 
When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...
When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...
When Your Software is Your Business: Building a SaaS Business on AWS - AWS Su...
 
Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...
Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...
Predicting Hospital Readmissions Using Amazon Machine Learning (HLC304) - AWS...
 
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
 
High Performance Computing Grid on AWS
High Performance Computing Grid on AWSHigh Performance Computing Grid on AWS
High Performance Computing Grid on AWS
 
Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...
Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...
Migrating Workloads from Oracle to Amazon Redshift: Best Practices with Pfize...
 
Landing zones: Creating a Foundation for Your AWS Migrations
Landing zones: Creating a Foundation for Your AWS MigrationsLanding zones: Creating a Foundation for Your AWS Migrations
Landing zones: Creating a Foundation for Your AWS Migrations
 
The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...
The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...
The vital role of AIOps in overcoming IT operational challenges - DEM07-SR - ...
 
Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018
Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018
Modernizing .NET Applications on AWS (GPSCT204) - AWS re:Invent 2018
 
Keynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practicedKeynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practiced
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
 
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
 
Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...
Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...
Run Production Workloads on Spot, Save up to 90% (CMP306-R1) - AWS re:Invent ...
 
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
 

Similar to Cost Optimisation Instructor Led Lab

Well Architected: Cost Optimization
Well Architected: Cost Optimization Well Architected: Cost Optimization
Well Architected: Cost Optimization
Amazon Web Services
 
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Amazon Web Services
 
Innovation Track AWS Cloud Experience Argentina - Optimizando Costos
Innovation Track AWS Cloud Experience Argentina - Optimizando CostosInnovation Track AWS Cloud Experience Argentina - Optimizando Costos
Innovation Track AWS Cloud Experience Argentina - Optimizando Costos
Amazon Web Services LATAM
 
Cloud Economics
Cloud EconomicsCloud Economics
Cloud Economics
Amazon Web Services
 
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
Amazon Web Services LATAM
 
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWSČesko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Vladimir Simek
 
AWS Webinar Series - Cost Optimisation Levers, Tools, and Strategies
AWS Webinar Series - Cost Optimisation Levers, Tools, and StrategiesAWS Webinar Series - Cost Optimisation Levers, Tools, and Strategies
AWS Webinar Series - Cost Optimisation Levers, Tools, and Strategies
Amazon Web Services
 
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS SummitOptimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Amazon Web Services
 
DevOps, CI/CD, cost management, and security on AWS
DevOps, CI/CD, cost management, and security on AWSDevOps, CI/CD, cost management, and security on AWS
DevOps, CI/CD, cost management, and security on AWS
Tom Laszewski
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
Amazon Web Services
 
Cloud Deep Dive: Total Cost of Ownership - John Enoch
Cloud Deep Dive: Total Cost of Ownership - John EnochCloud Deep Dive: Total Cost of Ownership - John Enoch
Cloud Deep Dive: Total Cost of Ownership - John Enoch
Amazon Web Services
 
Cloud Economics - TCO 101
Cloud Economics - TCO 101Cloud Economics - TCO 101
Cloud Economics - TCO 101
Amazon Web Services
 
Best Practices for Centrally Monitoring Resource Configuration & Compliance (...
Best Practices for Centrally Monitoring Resource Configuration & Compliance (...Best Practices for Centrally Monitoring Resource Configuration & Compliance (...
Best Practices for Centrally Monitoring Resource Configuration & Compliance (...
Amazon Web Services
 
Aws intro to cloud_economics
Aws intro to cloud_economicsAws intro to cloud_economics
Aws intro to cloud_economics
jtaylor707
 
The Future of API Management Is Serverless
The Future of API Management Is ServerlessThe Future of API Management Is Serverless
The Future of API Management Is Serverless
Chris Munns
 
Spending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_SingaporeSpending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_Singapore
Amazon Web Services
 
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWSAWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
Amazon Web Services
 
Governance at Scale
Governance at ScaleGovernance at Scale
Governance at Scale
Amazon Web Services
 
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Amazon Web Services
 
AWS Cost Management Workshop
AWS Cost Management WorkshopAWS Cost Management Workshop
AWS Cost Management Workshop
Amazon Web Services
 

Similar to Cost Optimisation Instructor Led Lab (20)

Well Architected: Cost Optimization
Well Architected: Cost Optimization Well Architected: Cost Optimization
Well Architected: Cost Optimization
 
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
 
Innovation Track AWS Cloud Experience Argentina - Optimizando Costos
Innovation Track AWS Cloud Experience Argentina - Optimizando CostosInnovation Track AWS Cloud Experience Argentina - Optimizando Costos
Innovation Track AWS Cloud Experience Argentina - Optimizando Costos
 
Cloud Economics
Cloud EconomicsCloud Economics
Cloud Economics
 
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
AWS Cloud Experience CA: Cómo reducir sus costos en AWS (broad cost strategy)
 
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWSČesko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
Česko-Slovenský AWS Webinář 07 - Optimalizace nákladů v AWS
 
AWS Webinar Series - Cost Optimisation Levers, Tools, and Strategies
AWS Webinar Series - Cost Optimisation Levers, Tools, and StrategiesAWS Webinar Series - Cost Optimisation Levers, Tools, and Strategies
AWS Webinar Series - Cost Optimisation Levers, Tools, and Strategies
 
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS SummitOptimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
 
DevOps, CI/CD, cost management, and security on AWS
DevOps, CI/CD, cost management, and security on AWSDevOps, CI/CD, cost management, and security on AWS
DevOps, CI/CD, cost management, and security on AWS
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Cloud Deep Dive: Total Cost of Ownership - John Enoch
Cloud Deep Dive: Total Cost of Ownership - John EnochCloud Deep Dive: Total Cost of Ownership - John Enoch
Cloud Deep Dive: Total Cost of Ownership - John Enoch
 
Cloud Economics - TCO 101
Cloud Economics - TCO 101Cloud Economics - TCO 101
Cloud Economics - TCO 101
 
Best Practices for Centrally Monitoring Resource Configuration & Compliance (...
Best Practices for Centrally Monitoring Resource Configuration & Compliance (...Best Practices for Centrally Monitoring Resource Configuration & Compliance (...
Best Practices for Centrally Monitoring Resource Configuration & Compliance (...
 
Aws intro to cloud_economics
Aws intro to cloud_economicsAws intro to cloud_economics
Aws intro to cloud_economics
 
The Future of API Management Is Serverless
The Future of API Management Is ServerlessThe Future of API Management Is Serverless
The Future of API Management Is Serverless
 
Spending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_SingaporeSpending Less On AWS_AWSPSSummit_Singapore
Spending Less On AWS_AWSPSSummit_Singapore
 
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWSAWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
 
Governance at Scale
Governance at ScaleGovernance at Scale
Governance at Scale
 
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
 
AWS Cost Management Workshop
AWS Cost Management WorkshopAWS Cost Management Workshop
AWS Cost Management Workshop
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Cost Optimisation Instructor Led Lab

  • 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Nathan Besh Cost Lead, Well-Architected Cost Optimisation Instructor Led Lab natbesh@amazon.com
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today • It’s 101 Focused • I Assume Very Little Knowledge/Experience • Mix of Information and Exercises • If You’re Advanced = Train the Trainer • No Coding or External Tools/Programs • Everything Must be a few Clicks in the Console • You can use your own account (need IAMCreate permission)
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Zero to Hero (your type of hero) • Tools and Knowledge to Gather Information • Present it with Business and Financial Meaning • Feedback - 5 Stars Rating? • Send me Your Savings = Bill in 1 Month, Bill in 3 Months
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cost of Optimisation • Cost of Collection, Analysis, Implementation • You MUST Invest in Time and $ (wisely) • Short, Fast Cycles of Cost Management • Look for High Spend & High Return • Top 10’s
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Well-Architected Approach
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Well-Architected Approach • Governance • Pricing Models • Resource Sizing • Monitoring Cost and Usage
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Governance
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Governance: Control Who Can do What Provide and Control Access • IAM Policies • Users • Groups • (Limits)
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #1 Policies, Users and Groups
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #2 Policies – Access Restriction
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Governance: Inform - Alerts Alert for Anomalies Alternative to Policies/Restrictions AWS Budgets • Set actual & forecasted budgets • Track cost, usage & RI utilisation • Alert when forecasted or actuals exceed pre-defined limits • Refine by Accounts, Tags, Instances… <~10 billing columns>
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Governance: CloudWatch Billing Alert Prefer not to use this… • Creates an SNS Topic • Requires additional access • More Management/Operational Cost
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #3 Budgets - Alerts
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Governance: AWS Budgets Usage budget • Good alternative for limits (notify, don’t restrict) • Specify Service, Instance Type and Usage Type (10 billing columns) RI Budget • Uses % by hrs, not $ or absolute hrs • Track forecasted utilisation of high value RI’s • What % should I use?
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models • On Demand • Reserved Capacity/Instances • Spot • Region Cost
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models: Reserved & Loss Aversion • People Prefer to Avoid Losses rather than Acquiring the Equivalent Win • What is the Actual Cost of Getting it Wrong? • Average 18.54 concurrent instances: Cost: $8,060.788 • How Wrong can I go & Still Win? • 25.99 PUF RI’s • 26.52 FUF RI’s
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models: Reserved – Assess Risk Break Even 100 % Fully Paid Assume 70% Fully Paid DayRI Utilisation
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models: Which Model? NUF vs PUF vs FUF *Prices as at 24th Apr 2018 - Standard vs Convertible
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #4 Pricing Models – RI Report
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models: RI Report • Purchase the Lower Size When Flexible • Decide at Speed and Scale • Max/Min – What’s the spread? • Average – Close to Max? Close to Min? • Sort by Break Even (sooner = lower risk) • Then Sort by Monthly Savings (highest return)
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pricing Models: RI Reports – Change in Usage
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #5 Pricing Models – RI Report (Pt2)
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Resource Sizing
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Resource Sizing: Requirements • Utilise Key Instance Attributes • CPU • Memory • Network • Additional Metrics: Storage (usage & size) • Customised/DIY Solutions: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html • Enterprise/Company Wide Solution Aligned
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #6 Resource Sizing – CloudWatch Dashboards
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Resource Sizing: Trusted Advisor • Requires Business Support ($100/month min, % of bill) • Currently ~60 checks per account • Multiple Services Supported (RDS, Redshift) • Does NOT Check Memory • 5 categories: • Cost • Performance • Security • Fault Tolerance • Service Limits
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #7 Resource Sizing – Trusted Advisor
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost • Monitor Your Usage as You Would System Uptime • Audience, Tooling will Vary • Higher Level = Cost Explorer • Lower Level = Cost and Usage Reports
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #8 Monitor Cost – Cost Explorer
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost: RI Utilisation • Shows “Hours”, not Cost (t2.micro vs ds2.8xl hours?) • Need $ - spreadsheet vlookup/conversion • T, M, C Families: Large = x$0.1, xlarge = x$0.2, 2xl = x$0.4…. • P, G, X, R, I, H, D Families: Add additional multiplier • Set Utilization Target = Fully Paid Day (100% = unnecessary concerns)
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost: RI Utilisation Fully Paid Day – Rough Estimates Discount Level: T2’s = 41% M5’s = 39% M4’s = 41% C5’s = 39% G3’s = 35% F1’s = 36% X1’s = 41% R4’s = 40% I3’s = 35% H1’s = 35% D2’s = 50% P2’s = 35% T2, M5, C5, M4, X1, R4 = 40% Discount G3, F1, I3, H1, P2 = 35% Discount D2 = 50% Discount T2, M5, C5, M4, X1, R4 = 60% Utilisation G3, F1, I3, H1, P2 = 65% Utilisation D2 = 50% Utilisation
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost With Depth
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost: Billing Reports • Detailed! (Up to Billions of Lines) • Data Source for Many 3rd Party Tools • Hourly Granularity • Everything, Everyone, Anytime, Anywhere = 1 File
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #9 Monitor Cost – Billing Reports
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost: Billing Report Analysis • Scalable (Over a Billion Lines) • Repeatable – Columns Change (Especially Tags) • Low Maintenance (Serverless) • Familiar/Popular Access Method (ANSI SQL) • Athena & AWS Glue
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #10 Monitor Cost – AWS Glue & Athena
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost: SQL • SQL – Structured Query Language, databases • Athena = ANSI SQL (standards based, lots of doco) • Basic structure: Select <column name>, <column name> from table Were <condition> Group by <column name> Order by <column name> [asc | desc] Limit <rows>
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor Cost: Using Athena • Everything is “string”, must use cast to convert for operations. lineitem/unblendedcost = “string”, should be “double” sum(lineitem/unblendedcost) = error sum(cast("lineitem/unblendedcost" AS DOUBLE)) as cost
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Exercise #11 Monitor Cost – Queries
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cost Lead, Well-Architected natbesh@amazon.com Nathan Besh
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Please complete the session survey in the Summit App. (and send me some bills!)
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thankyou