Module 1 - Intro_to_Cloud_and-EC2_Overview
Module 1 - Intro_to_Cloud_and-EC2_Overview
EC2 overview
2 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
3 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is AWS?
AWS provides a highly reliable, scalable, low-cost infrastructure platform
in the cloud that powers millions of businesses in over 240 countries and
territories around the world.
Benefits
§ Low Cost
§ Elasticity & Agility
§ Open & Flexible
§ Secure
§ Global Reach
4 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What sets AWS apart?
Security Fine-grained control
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
111 price Savings Plans
Pay for what
reductions Volume discounts
you use
since 2006 Reserved Instances
Custom pricing
Spot
6 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Customer obsessed
AWS’s infrastructure is
8 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reducing water used for cooling
• Evaporative cooling
• Reduce potable water usage
• Recycled cooling water
• Invest in reclaimed water infrastructure
9 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1
AWS Global Reach
10 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
11 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
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)
12 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Intra & inter-AZ connectivity
§ Dark fiber “spans”
§ Optimized for low-latency & physical diversity
§ Geospatial coordinates
13 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
14 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
15 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
16 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
2
EC2 Overview
17 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Choices for Compute
18 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2
19 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What’s a virtual CPU? (vCPU)
20 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Memory and Storage
21 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance sizing
xlarge
2xlarge xlarge
4xlarge
xlarge
2xlarge
xlarge
8xlarge ≈ ≈ ≈
xlarge
2xlarge
xlarge
4xlarge
xlarge
2xlarge
xlarge
22 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Naming Explained
Instance generation
c5n.xlarge
Instance Attribute Instance size
family
23 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance Types
General Compute Memory Accelerated Storage
Purpose Optimized Optimized Computing Optimized
Burstable General Compute Compute Memory In-memory Memory Compute and Graphics General Dense Big Data
performance Purpose Intensive +memory up Optimized Intensive Memory Intensive Purpose GPU FPGA High I/O Storage Optimized
to 100 Gbps Intensive
T3 M5 C5 C5n R5 X1 X1e G3 P4 F1 D3 H1
Local storage
(NVMe SSD) M5d C5d R5d Z1d I3
24 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Choose your processor and architecture
Intel® Xeon® Scalable NVIDIA V100 AMD EPYC processor AWS Graviton FPGAs for custom
(Skylake) processor Tensor Core GPUs Processor (arm) hardware acceleration
25 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Graviton2 Processor
Enabling the best price/performance for your cloud workloads
Built on 64-bit Arm Neoverse cores Built with 64-bit Arm Neoverse
with AWS-designed silicon using 16 cores with AWS-designed silicon using
nm manufacturing technology 7 nm manufacturing technology
26 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Choice of accelerators for specialized workloads
Configure right amount of graphics Easily attach fractional sizes of a full GPU
acceleration for your workload instance to EC2 or SageMaker instances
27 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Broadest and deepest platform choice
Compute intensive
Memory intensive
High memory footprint
(up to 24 TiB)
Instance storage
Elastic Inference 400+
(HDD and SSD)
Storage (High I/O) Elastic Graphics
Accelerated computing for virtually every
Dense storage (GPUs ,FPGA & ASIC) workload and
business need
GPU compute Networking Linux, Unix, Windows,
(up to 400 Gbps) macOS
Graphics intensive Bare Metal
Size
(Nano to 32xlarge)
28 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is an Amazon Machine Image (AMI)?
29 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Choosing an AMI
AWS Console AWS Marketplace
Use the AMI ID to launch through the API or AWS Command Line Interface (AWS CLI)
aws ec2 run-instances --image-id ami-04681a1dbd79675a5 --instance-type c4.8xlarge --count 10 --key-name MyKey
30 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Operating Systems Supported
§ Windows 2003R2*/2008*/2008R2*/2012/2012R2/2016/2019/2022
§ Amazon Linux
§ Debian
§ Suse
§ CentOS
§ Red Hat Enterprise Linux
§ Ubuntu
§ Mac
31 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 purchase options
32 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Simplify capacity and cost optimization
Scale using
Spot,
On-Demand,
or both
Amazon EC2 EC2 Fleet Amazon Elastic Amazon Elastic AWS Amazon AWS AWS Batch
Auto Scaling Container Service Container Service Thinkbox EMR CloudFormation
for Kubernetes
33 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Hibernate Amazon EC2 Instances
Maintain a fleet of pre-warmed instances to quickly get to a productive state
Available with Amazon Use familiar Stop and Memory data saved in EBS RAM contents are
EBS-backed instances Start APIs root volume encrypted on EBS
Its just like closing and opening your laptop! Applications can pick up right where it left off
34 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
3
EC2 Design
35 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Host Virtualization
Hypervisor
Host server
Physical servers in
AWS global regions
36 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Resource allocation
§ All resources assigned to you are dedicated to your instance with
no over commitment*
§ All vCPUs are dedicated to you
§ Memory allocated is assigned only to your instance
§ Network resources are partitioned to avoid “noisy
neighbors”
§ Curious about the number of instances per host?
§ See “Dedicated Hosts Configuration Table” for a guide.
37 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Which hypervisor do we use?
Original host architecture: Xen-based
• Hypervisor consumed resources from the underlying host
• Limited optimization
Modular building blocks for rapid design and delivery of EC2 instances
39 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Security Groups
40 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2-Specific Credentials
EC2 key pairs
• Linux – SSH key pair for first-time host login
• Windows – Retrieve Administrator password “Public Half” inserted by
Amazon into each EC2
Standard SSH RSA key pair instance that you launch
• Public/Private Keys
• Private keys are not stored by AWS
AWS approach for providing initial access to a
generic OS “Private Half”
• Secure downloaded to your
desktop
• Personalized
• Non-generic (NIST, PCI DSS)
41 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Any Questions?
42 © 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.