SlideShare a Scribd company logo
1 of 43
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Cost Optimisation Instructor Led Lab
© 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
Budget - 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
Thank you!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
aws.amazon.com/activate
Everything and Anything Startups
Need to Get Started on AWS

More Related Content

What's hot

Simplify Operations, Compliance and Governance using AWS Systems Manager
Simplify Operations, Compliance and Governance using AWS Systems ManagerSimplify Operations, Compliance and Governance using AWS Systems Manager
Simplify Operations, Compliance and Governance using AWS Systems ManagerAmazon Web Services
 
Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018
Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018
Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018Amazon Web Services
 
Too Many Tools - How AWS Systems Manager Bridges Operational Models
Too Many Tools - How AWS Systems Manager Bridges Operational ModelsToo Many Tools - How AWS Systems Manager Bridges Operational Models
Too Many Tools - How AWS Systems Manager Bridges Operational ModelsAmazon 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
 
DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018
DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018
DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018Amazon Web Services
 
[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...
[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...
[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...Amazon Web Services
 
Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...
Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...
Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...Amazon Web Services
 
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...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 AWSAmazon Web Services
 
Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...
Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...
Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...Amazon Web Services
 
Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...
Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...
Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...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 2018Amazon Web Services
 
Module 4 - AWSome Day Online Conference 2018
Module 4 - AWSome Day Online Conference 2018Module 4 - AWSome Day Online Conference 2018
Module 4 - AWSome Day Online Conference 2018Amazon Web Services
 
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
 
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
 
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...Amazon Web Services
 
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...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
 

What's hot (20)

Simplify Operations, Compliance and Governance using AWS Systems Manager
Simplify Operations, Compliance and Governance using AWS Systems ManagerSimplify Operations, Compliance and Governance using AWS Systems Manager
Simplify Operations, Compliance and Governance using AWS Systems Manager
 
Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018
Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018
Amazon SageMaker and Chainer: Tips & Tricks (AIM329-R1) - AWS re:Invent 2018
 
Too Many Tools - How AWS Systems Manager Bridges Operational Models
Too Many Tools - How AWS Systems Manager Bridges Operational ModelsToo Many Tools - How AWS Systems Manager Bridges Operational Models
Too Many Tools - How AWS Systems Manager Bridges Operational Models
 
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...
 
DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018
DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018
DevOps Concepts for Data Science (DEV347-R2) - AWS re:Invent 2018
 
[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...
[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...
[NEW LAUNCH!] Introducing AWS Ground Station – Fully managed Ground Station a...
 
Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...
Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...
Building a Governance, Risk, and Compliance Strategy with AWS (WPS204) - AWS ...
 
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
 
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
 
Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...
Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...
Manage Queries, and Audit Usage & Control Costs at Scale on Amazon Athena (AN...
 
Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...
Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...
Learn to Build a Cloud-Scale Website Powered by Amazon EFS - AWS Online Tech ...
 
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
 
Module 4 - AWSome Day Online Conference 2018
Module 4 - AWSome Day Online Conference 2018Module 4 - AWSome Day Online Conference 2018
Module 4 - AWSome Day Online Conference 2018
 
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...
 
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...
 
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
 
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
 
Management@Scale
Management@ScaleManagement@Scale
Management@Scale
 
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...
 

Similar to Well-Architected: Cost Optimization Instructor Led Lab.pdf

Cost Optimisation Instructor Led Lab
Cost Optimisation Instructor Led LabCost Optimisation Instructor Led Lab
Cost Optimisation Instructor Led LabAmazon Web Services
 
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 2018Amazon 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 CostosAmazon Web Services LATAM
 
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 SummitAmazon 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 AWSTom Laszewski
 
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 EnochAmazon Web Services
 
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 StrategiesAmazon 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 AWSVladimir Simek
 
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 ServerlessChris Munns
 
Operating at Scale- Preparing for the Journey [Portuguese]
Operating at Scale- Preparing for the Journey [Portuguese]Operating at Scale- Preparing for the Journey [Portuguese]
Operating at Scale- Preparing for the Journey [Portuguese]Amazon Web Services
 
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...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
 
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_economicsjtaylor707
 

Similar to Well-Architected: Cost Optimization Instructor Led Lab.pdf (20)

Cost Optimisation Instructor Led Lab
Cost Optimisation Instructor Led LabCost Optimisation Instructor Led Lab
Cost Optimisation Instructor Led Lab
 
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
 
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
 
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
 
Governance at Scale
Governance at ScaleGovernance at Scale
Governance at Scale
 
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
 
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
 
Cloud Economics - TCO 101
Cloud Economics - TCO 101Cloud Economics - TCO 101
Cloud Economics - TCO 101
 
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
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Operating at Scale- Preparing for the Journey [Portuguese]
Operating at Scale- Preparing for the Journey [Portuguese]Operating at Scale- Preparing for the Journey [Portuguese]
Operating at Scale- Preparing for the Journey [Portuguese]
 
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
 
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...
 
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
 

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 FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon 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
 
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 WorkloadsAmazon 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 sfatareAmazon 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 NodeJSAmazon 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 webAmazon 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 sfatareAmazon 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 ServiceAmazon 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
 

Well-Architected: Cost Optimization Instructor Led Lab.pdf

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Cost Optimisation Instructor Led Lab
  • 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 Budget - 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 Thank you!
  • 43. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved aws.amazon.com/activate Everything and Anything Startups Need to Get Started on AWS