In this session, we will delve into Amazon Elastic Compute Cloud (Amazon EC2) , EC2 is a cloud computing service provided by Amazon Web Services (AWS) that enables users to easily and flexibly deploy and manage virtual servers, known as instances, in the cloud. EC2 offers a wide range of instance types to cater to diverse computing needs, from small-scale web applications to high-performance computing clusters. Users can select the operating system, configure the instance specifications, and scale their compute capacity up or down as needed, paying only for the compute resources they consume. This service empowers businesses and developers to efficiently run their applications, host websites, and perform various computing tasks in a scalable and cost-effective manner without the hassle of managing physical hardware.
2. Lack of etiquette and manners is a huge turn off.
KnolX Etiquettes
Punctuality
Join the session 5 minutes prior to the session start time. We start on
time and conclude on time!
Feedback
Make sure to submit a constructive feedback for all sessions as it is very
helpful for the presenter.
Silent Mode
Keep your mobile devices in silent mode, feel free to move out of session
in case you need to attend an urgent call.
Avoid Disturbance
Avoid unwanted chit chat during the session.
3. Agenda
1. What is AWS EC2
2. EC2 Component
3. EC2 Instance
4. How to create AWS EC2 Servers
5. How to use AWS servers
6. Amazon machine images (AMIs)
7. Demo
5. EC2 is a web-service which aims to make life easier for developers by providing
secure and re-sizable compute capacity in the cloud.
EC2 allows you to launch virtual servers (known as instances) on the AWS cloud,
which can be used for a wide range of computing tasks, from hosting simple web
applications to running complex machine learning models.
What is EC2
6. Scalability :
EC2 instances can be easily scaled up or down to handle changing
workloads.
Instance Types:
A variety of instance types are available to meet different Performance
and cost requirements.
Elastic IP Addresses:
You can associate static IP addresses with your instances.
Security Groups :
Define rules for inbound and outbound traffic to control network access.
EC2 Key Features
9. Introduction to EC2 Instance Type
Amazon EC2 provides us with a wide selection of instance type that are optimized for different use
cases.
Instance type comprises of varying combinations of CUP,memory,storage and networking capacity
and this gives us the flexibility to choose the most appropriate mix of resources for the
applications.
Each instance type includes one or more instance sizes , that allows us to scale the resources to
the requirements of the target workloads.
The instance type can be divided into the following
General purpose
Compute optimized
Memory optimized
Storage optimized
Accelerated computing
HPC optimized
10. 1 – General Purpose
General purpose instances provides a balance of compute, memory and networking resources
and can be used for a variety of diverse workloads.
Balance of Compute Memory and networking.
These instance are ideal for application that use these resources in equal proportions such as web
servers and code repositories.
11. 2 – Compute Optimized
Compute optimized instances are ideal for compute bound applications that benefit from high
performance processors
Instances belonging to this category are well suited for batch processing workloads, media
transcoding,high performance web server, high performance computing, scientific modeling ,
dedicated gaming servers and ad server engines, machine learning inference and other compute
intensive application
12. 3 – Memory optimized
Memory optimized instances are designed to deliver fast performance for workloads that process
large data sets in memory.
Memory optimized instances are ideal for memory intensive workloads such as open-source
databases , in-memory caches and real-time big data analytics
13. 4 – Accelerated Computing
Accelerated computing instances use hardware accelerators or co-processors to perform
functions,such as floating point number calculations, graphics processing or data pattern
matching,more efficiency than is possible in software running on CPU's.
These are ideal for machine learning high performance computing,computational fluid dynamics
computational finance,seismic analysis,speech recognition,autonomous vehicles.
14. 5 – Storage Optimized
Storage optimized instances are designed for workloads that require high sequential read and
write access to very large data set on local storage.
These are ideal for I/o intensive application and are targeted to customers using transaction
databases,amazon open search service and real-time analytics such as Apache Spark.
15. 6 – HPC Optimized
High performance computing (HPC) instances are purpose built to offer the best price
performance for running HPC workloads at scale on AWS.
HPC instances are ideal for applications that benefit from high-performance such as large,complex
simulations and deep learning workloads.
16. How to create AWS EC2 Servers
1- login to the AWS Account
2- create AWS Server
By choosing EC2 Service
By choosing Launch instance
Choose instance count and instance name
Choose AMI (operating system) (Ubuntu Linux 20 AMI)
Choose instance type as T2.micro (1 Core CPU and 1 GB Ram)
Create Pem file, it’s just like password
Choose security group as SSH and HTTP (SSH Linux to Linux/HTTP we can access web
server from internet )
Choose EBS volume as 8 GB , it’s just like Hard-disk
By choosing launch instance , we can create a server on AWS cloud
17. How to use AWS servers
Install git bash on your laptop
By using git bash and pem file , we can login into the server
Once you connected with the server you can use few command to check the connection
$ sudo -i
apt-get update
apt-get install apache2
Service apache2 status
18. Amazon Machine Images (AMIs)
An AMI or Amazon machine image is a template that is used to create a new instance/machine
based on user requirement.
The AMI would contain software information, operating system information, volume
information,access permissions
Pre-configured templates that allow you to launch instances quickly.
19. Type of AMI’s
There are 2 way to create AMI’s
1) Predefined AMI’s
1)predefined AMIs are created by Amazon and can be modified by the user.
2) Custom AMI’s
1)Custom AMI’s are created by the user so that they can be reused.