Learn & Lab
Introduction to AWS
Week 1 – Module 1
Tuan Vo
Solution Architect
© 2021, Amazon Web Services, Inc. or its Affiliates.
Phase 1: AWS Cloud Foundation
The goal of Phase 1 is to build a strong fundamental knowledge before we dive
deeper into more advanced topics. This phase lasts 7 weeks, including the
following modules:
• Week 1: Introduction to AWS
• Week 2: Networking
• Week 3: Storage
• Week 4: Computing
• Week 5: Database
• Week 6: Security
• Week 7: Architecting on AWS
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
Agenda – Module 1
• Introduction to AWS
• AWS Global Infrastructure
• Cost Management
• Cost Optimization
• Kahoot Game
• Labs
© 2021, Amazon Web Services, Inc. or its Affiliates.
Introduction to AWS
© 2021, Amazon Web Services, Inc. or its Affiliates.
What is AWS?
AWS provides a highly reliable, scalable, low-cost infrastructure platform
in the cloud that powers millions of businesses in over 190 countries
around the world.
Benefits
§ Low Cost
§ Elasticity & Agility
§ Open & Flexible
§ Secure
§ Global Reach
© 2021, Amazon Web Services, Inc. or its Affiliates.
What sets AWS apart?
Security Fine-grained control
175+ services to support any cloud workload; rapid
Service Breadth & Depth; pace of innovation customer driven releases
Experience: 1M+ customers Building and managing cloud since 2006
81 Availability Zones within 25 geographic Regions, 1 Local Zone, 230+
Global Footprint Points of Presence (218+ Edge Locations and 12 Regional Edge Caches),
245 Countries and Territories Served.
More machine learning happens on AWS than anywhere else.
Machine Learning Machine learning in the hands of every developer and data scientist
Tens of thousands of APN partners. The AWS Marketplace offers
Ecosystem 50 categories, and more than 8,000 software listings
AWS positioned as a Leader in the Gartner Magic Quadrant for
Enterprise leader Cloud Infrastructure as a Service, Worldwide
© 2021, Amazon Web Services, Inc. or its Affiliates.
Experience with Operational Reliability
Our goal is to make our operational performance indistinguishable from
perfect. We are driven to remove any all causes of failure.
§ We have spent over a decade building the world’s most reliable, secure, scalable, and
cost-effective infrastructure.
§ Service SLAs between 99.9% and 100% availability. Amazon S3 is designed for
99.999999999% durability.
§ Availability Zones exist on isolated fault lines, flood plains, and electrical grids to
substantially reduce the chance of simultaneous failure.
§ The AWS Service Health Dashboard provides 24/7 visibility in the real-time
operational status of all services around the globe.
© 2021, Amazon Web Services, Inc. or its Affiliates.
Pricing Philosophy
High volume / low margin businesses are in our core DNA
Trade CapEX for Our economies of Pricing model Save more money as
variable expense scale provide us choice to support you grow bigger
with lower costs variable and stable
workloads
On-demand
Tiered pricing
85 price Reserved Instances
Pay for what
reductions Volume discounts
you use
since 2006 Savings Plans
Custom pricing
Spot
© 2021, Amazon Web Services, Inc. or its Affiliates.
Customer obsessed
90%
of roadmap originates with customer requests
“Performance, reliability, and responsiveness are fundamental
to our customer experience, and T3 instances help us to deliver on
that customer promise while also controlling our costs.”
—Heroku
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Recognized as
a Cloud Leader for the
11st Consecutive Year
Gartner, Magic Quadrant for Cloud Infrastructure & Platform Services, Raj Bala, Bob Gill, Dennis Smith, David Wright, Kevin Ji, 1 September 2020. Gartner does not endorse any vendor,
product or service depicted in its research publications, and does not advise technology users to select only those vendors with the highest ratings. Gartner research publications consist of the
opinions of Gartner's research organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this research, including
any warranties of merchantability or fitness for a particular purpose. The Gartner logo is a trademark and service mark of Gartner, Inc., and/or its affiliates, and is used herein with
permission. All rights reserved.
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Infrastructure
© 2021, Amazon Web Services, Inc. or its Affiliates.
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
Intra & inter-AZ connectivity
§ Dark fiber “spans”
§ Optimized for low-latency & physical diversity
§ Amazon controlled infrastructure
§ Geospatial coordinates
§ Dense wavelength division multiplexing (DWDM)
© 2021, Amazon Web Services, Inc. or its Affiliates.
Availability Zones
• A region is comprised of multiple Availability Zones (typically 3)
• An Availability Zone (AZ) is one or more discrete data centers with redundant
power, networking, and connectivity in an AWS Region
• High throughput, low latency (<10mS) network between Availability Zones
• All traffic between AZ’s is encrypted
• Physical Separation < 100km Region us-east-1 (N.Virginia)
Availability Zone Availability Zone Availability Zone
us-east-1a us-east-1b us-east-1c
© 2021, Amazon Web Services, Inc. or its Affiliates.
Cost Management
© 2021, Amazon Web Services, Inc. or its Affiliates.
Introduction: AWS Cost Management
Tools People
Cost Explorer AWS Account Team
Budgets AWS Concierge
Cost and Usage Report
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Cost Explorer
AWS Cost Explorer lets you use filtering, grouping, and other analytical
functionality to understand your costs and analyze your cost drivers
© 2021, Amazon Web Services, Inc. or its Affiliates.
Features
Get Started Quickly Filter/Group your data
A set of default reports are included Dig deeper into your data by taking
to help you quickly gain insight into advantage of filtering and grouping
your cost drivers and usage trends. functionality on various dimensions
Save your progress
Track your Reserved Instances (RIs) Once you arrive at a helpful view,
Use the RI Utilization and RI Coverage save your progress as a new report
reports to gain insights into your RIs that you can refer back to in the
future.
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Cost Explorer | High-Level Overview
3
5
1 2 4
6
1. Adjust Time range
2. Data granularity
3. Report Management
4. Chart type
5. Filtering
6. Grouping
7. Download CSV
8
8. Advanced Options
7
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Cost Explorer | Forecasting
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Budgets
AWS Budgets gives you the ability to set custom budgets that alert you when
your cost or usage exceed (or are forecasted to exceed) your budgets amount.
You can also set RI Utilization alerts
© 2021, Amazon Web Services, Inc. or its Affiliates.
Overview – Configuring Budgets
© 2021, Amazon Web Services, Inc. or its Affiliates.
Overview – Configuring Budgets Cont.d
© 2021, Amazon Web Services, Inc. or its Affiliates.
Alerting
AWS Budgets lets you set cost, usage, or RI
Utiliation notification thresholds
Add up to 5 notification thresholds per
budget with up to 10 email subscribers
You can also add an SNS Topic and AWS
Budgets will notify through that channel
© 2021, Amazon Web Services, Inc. or its Affiliates.
Cost and Usage Report
A CSV Report with the most comprehensive AWS cost and usage information
available to customers
1. AWS delivers report to S3 2. Ingest into database 3. Conduct detailed analyses
© 2021, Amazon Web Services, Inc. or its Affiliates.
Best Practices on AWS Cost Management
Tagging
• Use AWS Config rules to mandate tagging
Cost Visibility
• Dashboard to track AWS Costs
Automation
• Automate cost controls using Budgets, SNS and Lambda
© 2021, Amazon Web Services, Inc. or its Affiliates.
Tags
Key (Attribute): 127 Unicode characters
Jane_Doe
Value (Detail/Description): 255 Unicode
characters
Tags per resource: 10 tags
© 2021, Amazon Web Services, Inc. or its Affiliates.
Tag Key Examples
Cost Business Dept./ Product /
Center Unit Group Application
Support
Owner Endpoint
Contact
Shutdown
Environ. Backup Tier
Time
© 2021, Amazon Web Services, Inc. or its Affiliates.
Visibility
Cost Explorer Report
Amazon Redshift
Amazon QuickSight
Amazon Athena + QuickSight
DIY – Custom Databases and BI tools
© 2021, Amazon Web Services, Inc. or its Affiliates.
Automation
© 2021, Amazon Web Services, Inc. or its Affiliates.
AWS Pricing Calculator
https://calculator.aws/
© 2021, Amazon Web Services, Inc. or its Affiliates.
Cost Optimization
© 2021, Amazon Web Services, Inc. or its Affiliates.
The Five Pillars of Cost Optimization
Rightsize your Increase Pick the right Optimize
resources elasticity pricing model storage
Measure, monitor
and improve
© 2021, Amazon Web Services, Inc. or its Affiliates.
Laying the Foundation: Setting Up Your Environment for Cost Optimization
Pillar 1:
Rightsizing
Cheapest Instance / Best Performance
Monitor Usage
© 2021, Amazon Web Services, Inc. or its Affiliates.
Rightsizing example
m5.4xlarge
$0.768 per hr m5.large
$0.096 per hr
1. Migrate/provision & 2. Check (CPU, RAM, 3. Rightsize
Run network, disc)
87.5%
Saving
4. Review Performance 5. Save!
© 2021, Amazon Web Services, Inc. or its Affiliates. Right Sizing: Provisioning Instances to Match Workloads
Pillar 2:
Increase Elasticity
Autoscaling
© 2021, Amazon Web Services, Inc. or its Affiliates.
Traditional approaches to capacity management
Build to peak load Build to average load
© 2021, Amazon Web Services, Inc. or its Affiliates.
Lower over-provisioning via elasticity
Auto Scaling allows you to:
• React dynamically to changes in
load
• Schedule regular workloads
• Optimise your instance usage
• Reduce over-provisioning
• Complimentary service!
AWS Well-Architected Framework Concepts: Elasticity
© 2021, Amazon Web Services, Inc. or its Affiliates.
Pillar 3:
Leveraging the Right
Pricing Model
Reserved Instances / Savings Plans
EC2 Spot
On-Demand
© 2021, Amazon Web Services, Inc. or its Affiliates.
What are Reserved Instances (RI) and Savings Plans (SP)?
• Billing Subscription (“discount coupon”
applied hourly)
Discount • 1yr or 3yr term commitment to pay
coupon for all hours for a reduced price
• Doesn’t reserve actual capacity (except for
RIs with Zonal scope)
Up to 75%
Selecting the Best Pricing Model
Savings
© 2021, Amazon Web Services, Inc. or its Affiliates.
EC2 Spot provides incredible savings for the right workloads
Spot can be used for
• Stateless
• Fault-tolerant
• Big data
• Containers
Up to 90% • CI/CD
Savings •
•
Web servers
High Performance Compute
• Dev/Test
• See https://amzn.to/2wKNIT1
© 2021, Amazon Web Services, Inc. or its Affiliates.
Pillar 4:
Leveraging the Right
Storage Class
Elastic Block Storage
Simple Storage Service
© 2021, Amazon Web Services, Inc. or its Affiliates.
Amazon Storage Classes/Platforms
• Server/Instance Storage • Distributed • Object Storage
• Local Filesystems Filesystem • Backup Target –
• Network Volumes (EBS) Snapshots,…
Amazon Elastic Block EC2 Instance Store Amazon Elastic File Amazon Simple Storage Amazon S3 Glacier
Store System Service
Block File Object
Data Transfer
How do you select your storage solution?
AWS Direct Connect AWS Storage Gateway AWS Snowball
© 2021, Amazon Web Services, Inc. or its Affiliates.
Pillar 5:
Measure, monitor and
improve
© 2021, Amazon Web Services, Inc. or its Affiliates.
Summary of Mechanisms for Optimisation
Define, agree, and enforce Define metrics, set
cost allocation tagging targets, and review
Enable teams to Assign optimization
architect for cost responsibility
© 2021, Amazon Web Services, Inc. or its Affiliates. Cloud Enablement Engine: A Practical Guide
Labs
© 2021, Amazon Web Services, Inc. or its Affiliates.
Labs
Bắt buộc – Sử dung account do AWS cung cấp: Không bắt buộc – Sử dụng account cá nhân:
• Quản lý tài nguyên bằng Tag và Resource Group • Tạo tài khoản AWS đầu tiên
https://000027.awsstudygroup.com/vi/ https://000001.awsstudygroup.com/vi/
• Quản lý chi phí với AWS Budgets
Giải thưởng: 5 áo thun AWS cho 5 anh/chị hoàn thành https://000007.awsstudygroup.com/vi/
bài lab bắt buộc nhanh nhất. • Trực quan hoá chi phí với AWS Cost Explorer
https://000034.awsstudygroup.com/vi/
Giải thưởng: 5 áo thun AWS cho 5 anh/chị hoàn thành
tất cả các bài lab tuỳ chọn nhanh nhất.
Lưu ý:
- Chụp màn hình AWS Console sau khi hoàn thành các bài lab và đăng vào kênh lab-week-1 trên Slack.
- Hình chụp phải bao gồm Account ID (Ở góc trên bên phải của AWS Console).
- Tài khoản Lab có thể sử dụng đến 5 giờ chiều thứ 2 tuần sau.
© 2021, Amazon Web Services, Inc. or its Affiliates.
Truy cập Event Engine
Bước 1: Truy cập vào địa chỉ
https://dashboard.eventengine.run/
Bước 2: Nhập Event/Team Hash
Bước 3: chọn Accept Terms & Login
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
Truy cập Event Engine
Bước 4: Chọn Email One- Bước 5: Điền địa chỉ Email Bước 6: Điền mã OTP
Time Password (OTP) và chọn Send passcode được gửi về Email và
chọn Sign in
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
Truy cập Event Engine
Bước 7: Chọn AWS Console
Bước 8: Chọn Open AWS Console
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
Truy cập Event Engine
Cửa sổ AWS Console được mở ra và sẵn sàng để làm Lab
© 2021, Amazon
© 2021, Amazon Web Services,
Web Services, Inc.
Inc. or or its Affiliates.
its affiliates. All rights reserved.
Kahoot Game
© 2021, Amazon Web Services, Inc. or its Affiliates.
Kahoot Game
Địa chỉ chơi game: kahoot.it
Có thể sử dụng máy tính hoặc điện thoại.
Thể lệ: Bao gồm 8 câu hỏi trắc nghiệm, tính điểm theo số câu trả lời đúng và thời
gian trả lời, trả lời đúng càng nhiều câu hỏi với thời gian càng ngắn thì điểm
càng cao.
Giải thưởng: 4 áo thun AWS cho 4 anh/chị đạt điểm cao nhất.
© 2021, Amazon Web Services, Inc. or its Affiliates.
Thank you!
© 2021, Amazon Web Services, Inc. or its Affiliates.