Module 2
Module 2
Introduction to EC2
1
Regions and Availability
Zones 1 EC2 Instance Types
11 What is an AMI?
1 Introduction to EBS 1 Introduction to EFS
1 AWS FSx
1
Instance Tenancy and
Reserved and Spot Instances 1 EC2 and EBS Pricing
Features of EC2
● Using key pairs, you can secure login information for your instances
(AWS stores the public key, and you store the private key in a secure
place)
Meaning of Elasticity
Increasing
User Traffic
EC2
Users
Decreasing
User Traffic
EC2
Users
Instance Types
• Operating system
Server
AMI AMI
(us-east-1) (ap-south-1)
COPY
Elastic IP
Public IP
• No charges for the public IP, • Charges will be applied if the same
even if it is not being used is done with the elastic IP
while the instance is running
• The elastic IP is the same and
• Whenever the instance is re- static for every launch until we
launched, the public IP changes manually release it
• Elastic IP CPU
• Public IP N/W
Interface
• Private IP
Card
• Security Groups RAM
Elastic IP
Motherboard
Features of EBS
● Regions and Availability Zones are multiple physical locations for your
resources, such as instances and Amazon EBS volumes.
● Using security groups, you can specify the protocols, ports, and
source IP ranges that can reach your instances.
● Elastic IP addresses are static IPv4 addresses used for dynamic cloud
computing.
C: D:
Directory
File
/bin/abc/file2
us file1 file2
IOPS: It is the measure of the number of I/O operations a drive, SSD, or HDD can handle per second with
each block being read from or written to a RANDOM location in the disk
EC2 Instance
• Baseline performance is
• From 100 to 32000 IOPS • Baseline performance • Baseline performance
3 IOPS/GB with a min. of
can be provisioned is 40 MB/s per TB with is 12 MB/s per TB with
100 IOPS and a max. of
• Max. throughput a max. of 500 MB/s a max. of 192 MB/s
10000 IOPS
per volume is 500 per volume per volume
• Max. burst performance
MB/s • Burst performance is • Burst performance is
is 3000 IOPS
250 MB/s per TB with 80 MB/s per TB with a
• Max. throughput per
a max. of 500 MB/s max. of 250 MB/s per
volume is 160 MB/s (16
per volume volume
KB IO size)
We can now enable Multi-Attach on Amazon EBS Provisioned IOPS io1 volumes to allow a single volume to be
concurrently attached to up to 16 AWS Nitro System-based Amazon EC2 instances within the same availability
zone
Snapshot
A B B A B B
1st Snapshot
B B
A B
All snapshots are incremental B 2nd Snapshot B
D X
C
5 GB P Y 5 GB 20 GB
Snapshot
EBS
Encrypted
Copy and
Encrypt Copyright Intellipaat. All rights reserved.
EBS Snapshots
New Feature: Data Lifecycle Manager for Snapshots
• It is free to use
Snapshot Snapshot
Hello
%^@
%^@
!
!
EBS
Unencrypted to encrypted
Encrypted to unencrypted
%^@
! Hello
Features of EFS
● Completely managed
If our application is running on Amazon EC2 and needs a file system or in any use
case where a file system is needed
⮚ EBS Stands for Elastic Book Store ⮚ EFS stands for Elastic File system
Differences
⮚ It provides the block-level storage ⮚ It is easy to use.
volumes for the of EC2 instances.
What is Fsx ?
● File systems that can establish permissions at the file or folder level
and are accessible by multiple users.
● Application workloads that use the SMB protocol and require shared
file storage provided by Windows-based file systems (NTFS).
● It is compatible with the following compute services:
● Amazon Elastic Compute Cloud ,Instances of Amazon Workspaces ,
Instances of Amazon AppStream 2.0 & VMWare Cloud VMs running
on AWS Environments.
Storage
DFS (Distributed File System) Namespaces allow
you to group file shares from multiple file
systems into a single common folder structure
(a namespace) from which you can access the
entire file dataset.
Migration
Using Windows' Robust File Copy (RoboCopy) to
copy your files (both the data and the full set of
metadata like ownership and Access Control
Lists) directly to Amazon FSx.
Shared/Default Instance
Dedicated Instance
XEN Hypervisor
Cross-platform PG
10 Gbps
Reserved Instances
4 [Link] Linux, default tenancy in AZ us-east-1a 4 [Link], Linux, default tenancy, AZ us-east-1a
2 m4.4xlarge Amazon Linux, default tenancy in us-east-1b 4 [Link], Amazon Linux, default tenancy, region us-east-1
[Link] RHEL dedicated tenancy in AZ us-east-1c [Link], RHEL, default tenancy, region us-east-1
EC2 Instances
Spot Instances
Spot Fleet
Default/Shared
Tenancy Windows
Platform
Dedicated Instance
Linux
Standard
Offering
Convertible
• io1: US$0.125 per GB per month and US$0.065 per provisioned IOPS per month st1: US$0.045 per GB per month
• Free Tier: 30 GB/month, a combination of gp2 and magnetic. 2,000,000 IO with magnetic, 1 GB of snapshot storage
support@[Link]