04 Feb 2023 WeekEnd Intellipaat
04 Feb 2023 WeekEnd Intellipaat
Virtualization
Virtual Machine
Containerization
Container Vs Virtual Machine
AWS Journey
AWS Global Infrastructure (Regions, AZs, Edge Locations, Local & Wavelength Zone)
AWS List of Services
AMI
Public Key AWS Machine Image
Security DDoS
Server
Hypervisors
AWS CloudShell is a web-based shell service provided by Amazon Web Services (AWS). It allows users to
access an environment with the AWS Management Console, the AWS command-line interface (CLI), and
other tools pre-installed and configured. Users can access the shell using a web browser and do not
need to set up or maintain any infrastructure. CloudShell also includes a persistent storage volume that
users can use to store files and scripts. It's a way to easily manage and access AWS resources without
having to set up and maintain a separate environment.
What you are going to get free in AWS Free Tier Account?
AWS Free Tier offers a variety of free services and resources that users can use to learn and
test AWS services. Some of the services and resources that are included in the free tier are:
1. Amazon Elastic Compute Cloud (EC2): Users can launch a free t2.micro instance for 750
hours per month.
2. Amazon Simple Storage Service (S3): Users can store 5 GB of data in S3 and transfer up
to 15 GB of data out of S3 each month.
3. Amazon DynamoDB: Users can store up to 25 GB of data and perform up to 25 write
capacity units and 25 read capacity units of DynamoDB per month.
4. Amazon Relational Database Service (RDS): Users can launch a free db.t2.micro DB
instance for 750 hours per month.
5. Amazon Elastic Container Service (ECS): Users can run 1 Fargate task and 1,000 ECS
container instances per month.
6. AWS Lambda: Users can run 1 million free requests per month and 400,000 GB-
seconds of compute time per month.
7. Amazon CloudFront: Users can transfer 50 GB of data out and 2 million HTTP and
HTTPS requests per month.
8. Amazon Elastic Block Store (EBS): Users can use 30 GB of EBS storage, 2 million I/Os,
and 1 GB of snapshot storage for free.
These are some of the most popular services, and there are many more services that are
available as part of the free tier. It's always worth checking the AWS Free Tier page to see
the most up-to-date information on what services and resources are available for free.
Why to choose AWS Cloud Platform?
There are several reasons why organizations choose to use the Amazon Web Services (AWS)
cloud platform:
Overall, AWS offers a comprehensive, secure, reliable and cost-effective cloud platform that
can help organizations of all sizes and industries to run their applications and services.
Virtualization
Virtualization is a technology to create virtual machine.
Physical Server
Application Performance
Configuration
Bare Metal Server/Physical Server
24 vCPU +
128 GB RAM
Application
Virtualization
Configuration
24 vCPU + Type-1 Hypervisor: ESXi or XEN
128 GB RAM
Bare Metal Server/Physical Server
Hypervisors
Guest OS OS
VM
Type-2 Hypervisor
Windows 11
Laptop
Data Center Virtualization
P S
OS:Linux OS:Linux
OS:Linux OS:Win OS:Win OS:Linux OS:Win OS:Linux OS:Win
VM VM
VM VM VM VM VM VM VM
Type-1 Hypervisor: ESXi or XEN Type-1 Hypervisor: ESXi or XEN Type-1 Hypervisor: ESXi or XEN
Bare Metal Server/Physical Server Bare Metal Server/Physical Server Bare Metal Server/Physical Server
Cluster
Containerization
Containerization is a technology to create & manage Containers
Containers are light weight virtual machines
In AWS to create Virtual Machines (Instances) we use EC2 (Elastic Compute Cloud) Service.
Questions:
In what use cases we should use Virtual Machines (Instances).
In What use cases we should use Containers.
1. Legacy applications: VMs can be used to run legacy applications that are not compatible
with newer operating systems or hardware.
2. Isolation: VMs provide a high level of isolation between the host and guest operating
systems, making them ideal for running multiple applications with different security
requirements on the same physical hardware.
3. Testing and development: VMs can be used to create a test environment that closely
mimics a production environment, making it easier to find and fix issues before
deployment.
4. Resource-intensive applications: VMs can be used to run resource-intensive
applications, such as databases, that require a dedicated amount of resources.
5. Compliance: VMs are helpful to comply with regulations that require specific software
configurations and versions to be used.
6. Cloud computing: VMs are often used as a means of providing cloud-based
infrastructure-as-a-service (IaaS) and platform-as-a-service (PaaS) offerings.
Containers are often used in the following scenarios:
iSCSI (Internet Small Computer Systems Interface) is a protocol that allows SCSI
commands to be transmitted over TCP/IP networks. iSCSI is used to facilitate
data transfers over intranets and to manage storage over long distances. iSCSI
can be used to transmit data over local area networks (LANs), wide area
networks (WANs), or the Internet, and can enable location-independent data
storage and retrieval.
Next Session:
Availability Zones
Local Zones
Wavelength Zone
Edge Locations
Direct Connect
Availability Zones
Region
Mumbai
ap-south-1
AZ
Mumbai
ap-south-1 Region
Data Centers
PoP:
Point of Presence
Edge Location Mini Data Centers Edge locations containing, networking devices such as routers,
switches and also containing number of Servers to cache
memory for CDN (Content Delivery Network). You can find
for connectivity between DCs these edge location in all major cities, around the world for
Edge Location content distribution. More than 400 Edge Locations are there
in AWS Global Infrastructure.
usedsomething
Type for CDN (content distribution)
AWS Elasticache (CDN Service)
Local Zone
Local Zones are creating near to large populations, or IT & Industrial Hub.
Region: N.Virginia
Chicago
Atlanta
Houston Dallas
Miami
Wavelength Zone
AWS Wavelength is an infrastructure offering optimized for mobile edge computing applications.
This is basically meant for 5G mobile technology.
Wavelength Zone are AWS Infrastructure deployments that embed AWS Compute and
Storage Services within telecommunication provider's center at the edge to the 5G Network.
Direct Connect
Hybrid Cloud
AWS
upto 100 GBPS
Direct Connect
Co's Data Center
AWS Direct Connect makes it easy to establish a dedicated network connection from your
premises to AWS. Using AWS Direct Connect, you can establish private connectivity between
AWS and your datacenter, office, or colocation environment.
LAB
Region: Mumbai
Region:N.Virginia
Customize the Instance
1 Configure Instance &
4
Application 2 3
NEW AMI
copy
1 2
EC2 AMI EC2 AMI EC2 AMI
EC2 Instance
N.Virginia
Mumbai
On-Demand
With On-Demand Instances, you pay for compute capacity by the second with no long-term
commitments. You have full control over its lifecycle—you decide when to launch, stop,
hibernate, start, reboot, or terminate it.
There is no long-term commitment required when you purchase On-Demand Instances.
Reserved Instances
Reserved Instances provide you with significant savings on your Amazon EC2 costs compared to
On-Demand Instance pricing. Reserved Instances are not physical instances, but rather a billing
discount applied to the use of On-Demand Instances in your account. These On-Demand Instances
must match certain attributes, such as instance type and Region, in order to benefit from the billing
discount.
Spot Instances
Spot Instances are spare EC2 capacity that can save you up to 90% off of On-Demand prices
that AWS can interrupt with a 2-minute notification. Spot uses the same underlying EC2
instances as On-Demand and Reserved Instances, and is best suited for fault-tolerant,
flexible workloads. Spot Instances provide an additional option for obtaining compute
capacity and can be used along with On-Demand and Reserved Instances.
Dedicated Hosts
An Amazon EC2 Dedicated Host is a physical server with EC2 instance capacity fully dedicated to
your use. Dedicated Hosts allow you to use your existing per-socket, per-core, or per-VM software
licenses, including Windows Server, Microsoft SQL Server, SUSE, and Linux Enterprise Server.
VM
Hypervisors Used by AWS
Citrix XEN Hypervisor, hypervisor
AWS Created Hypervisor: Nitro
Host
The AWS Nitro System is the underlying platform for our next generation of EC2 instances that
enables AWS to innovate faster, further reduce cost for our customers, and deliver added benefits
like increased security and new instance types.
General Purpose:
General purpose instances provide a balance of compute, memory and networking
resources, and can be used for a variety of diverse workloads.
Dynamic IP
44.202.148.39
Block Storage
3 IOPs/GB up to 50 IOPs/GB
IOPs = Input Output Operations per Sec Gp2/gp3 100 GB 300 IOPs
600 GB 1800 IOPs
io1/io2 2000 GB 6000 IOPs
EC2 Instance
1000 Clients Approx.
Vol <=30GB
Vol <=30GB
LAB: How to create EBS Volume, and Connect & Configure Volume with EC2 Instance(Linux).
EC2 Instance
Root Volume
IOPS Input/Output Operations/Second on IO1 or IO2, you can take
upto 50 IOPs per GB Volume
Multi-Attach Volume
All Instances and EBS (io1/io2) volumes must be in the same Availability Zone in a Region
Availability Zone
io1/io2
Multi-Attach Volume
LAB1: Attach an EBS Volume with one Instance (Attach & detach)
LAB3: How to transfer data from One Region to another Region using EBS
LAB1: Attach an EBS Volume with one Instance (Attach & detach)
Availability Zone
xfs
/dev/xvdf1
Additional Volume EBS Multi-Attach Vol
Linux
fdisk /dev/xvdf
1
2 lsblk
New Volume 3 mkfs.xfs /dev/xvdf1
4 clear
Create a Partition within that volume 5 mkdir /mnt/dd1
6 ll
Format the Partition (Providing File System for the Partition) 7 mount /dev/xvdf1 /mnt/dd1
8 df -h
Mount the Partition on root tree structure of Linux
LAB2: Multi-Attach Volume
Nitro Instances
Availability Zone
Linux
c5.xlarge c5.xlarge
io1/io2
Dynamic IP
44.202.148.39
EIP
35.168.201.105
It is a method to configure instance at launch time using script (Shell for Linux/
Power Shell for Windows)
Example: Lets say you need to launch a Web Server, and you need to configure the
web server during the launch time, we will use a Shell Script to configure the Instance
at launch time.
Script
#!/bin/bash
sudo su -
yum install httpd -y
systemctl start httpd
systemctl enable httpd
cd /var/www/html
echo "This is my bootstrap Web Server 2023" > index.html
Public Key
Public key is used to encrypt the information
Public Key belongs to AWS
Private Key
Private key is used to decrypt the information
you download the Private Key
AWS generated key uses 2048 bit and SSH-2 RSA algorithm
You AWS Account can have up to 5000 key pairs per Region
EIP EIP
Server is running
Database Server
Snapshot
Snapshot is a backup and recovery method for EBS volume
The snapshot is a point in time backup of an EBS Volume
EBS Snapshots are incremental and cost effective solution
if multiple backups are taken of a volume, they are incremental
EBS Volume
4 GB 10
10:00AM Second Snapshot
6 GB 6 GB
EBS Snapshot
10 GB EBS Snapshot
EBS Snapshot
EBS Snapshot
EBS Snapshot
EBS Snapshot
Amazon EC2 AMI
Copy
Region-B
Attach
ed
Restored EBS Volume
d
are
EBS Snapshot
Sh
cly
Priv
bli
ate
ly S
Pu
har
ed
Note:
EBS Snapshot EBS Snapshot
Snapshots can be shared privately or publicly
LAB: Assignment
N.Virginia
1 root volume
3
2
Ohio
4
5
EBS Snapshot
VPC
Bastion Host
1
2
4
User
3
Private Instance
Key of Public
Instance Public Instance
Key of Private Instance
Question:
Linux
ssh:22
Web Server
RDP:3389
Windows Server
IIS Server
http/https:80/443
Linux
NFS Server (NAS)
NFS:2049
Linux
ssh:22
WebServer
RDBMS 80/443 for http and https
NFS 3306 for MySQL
NFS 2049
EFS (Storage)
ELB
AutoScaling
Route53