0% found this document useful (0 votes)
13 views

Introduction To AWS EC2 Intro

Uploaded by

shweta shinde
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Introduction To AWS EC2 Intro

Uploaded by

shweta shinde
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Manual Content

I. Introduction to AWS EC2

Amazon Web Service EC2 is a web service which is provided by the AWS cloud, which is
secure, resizable, and scalable. Elastic Compute Cloud, or EC2, is a cloud computing service
provided by cloud service provider AWS and is available through Amazon Web Services
(AWS). The operating systems and part of the necessary software are already installed on
these virtual PCs. Furthermore, it provides the option to configure the instance according to
the current task, i.e. allocate the RAM, ROM, and storage accordingly. You don't need to
worry about the supporting infrastructure when deploying your apps on EC2 servers. By
connecting the autoscaling group to the EC2 instance, you can adjust the settings of the
instance according to the application's need. Also, user can dismantle the virtual device once
the task is completed. Depending on the application's incoming traffic, you can scale the
instance up or down.
A. Understanding EC2 Instances

An AWS EC2 instance is basically a virtual server in Amazon web services. With this
AWS user can request and provision a computer server within the AWS cloud.
Amazon EC2 provides a wide selection of instance types optimized to fit different use
cases. With instance types, you can easily select the combination of CPU, memory,
storage, and networking resources you need for your application. A variety of instance
sizes is available for each instance type, allowing you to scale your resources
according to the requirements of your target workload.
The figure below shows the ec2 instance which is deployed in VPC (virtual private
cloud) which is a service that allows the users to launch their virtual machines in a
protected or isolated virtual environment. (AWS, 2023).
AWS EC2 instances are grouped into families based on the application profiles.

 General Purpose: These instances provide a balance of compute, memory, and


networking resources, and can be used for a variety of diverse workloads. It is best
to use these instances for applications that use these resources in equal
proportions, such as web servers and code repositories.
 Compute Optimized: A compute optimized instance is ideal for applications that
need high performance processors and are compute bound. There are a number of
applications that can be run on instances in this category, including batch
processing, media transcoding, high performance web servers, high performance
computing (HPC), scientific modelling, dedicated gaming servers, ad servers,
machine learning inference, and other compute intensive workloads.
 Memory Optimized: A memory optimized instance provides fast performance for
workloads that process large data sets.
 Accelerated Computing: A accelerated computing instance uses hardware
accelerators, also known as co-processors, to perform functions more efficiently
than software running on CPUs, such as floating-point number calculations,
graphics processing, or data pattern matching.
 Storage Optimized: A storage optimized instance is designed for workloads that
require fast, sequential access to very large local data sets. Their performance is
optimized to provide applications with tens of thousands of random I/O operations
per second (IOPS) at low latency.

Instance Family Prefix:


AWS use the specific prefixes to present the different types of instances.
t2: Represents the T2 instance family, designed for general-purpose workloads with burstable
CPU performance.
m5: Stands for the M5 instance family, which is balanced in terms of CPU and memory
resources and designed for general-purpose computing.
c5: Stands for the C5 instance family, which is designed for tasks that are compute-intensive
and demand high CPU performance.
r5: Stands for the R5 instance family, which is designed with memory-intensive workloads
like in-memory analytics and massive databases in mind.

Instance Size Suffix


The instance size indicates the combination of CPU cores, memory size and storage
capabilities.
Instance sizes include:
nano: The smallest size, usually requiring the least amount of RAM and CPU power.
Micro: Provides memory and CPU capacity that is marginally higher than "nano" size.
small, medium, large: Gradually increasing resource capacity.
xlarge, 2xlarge, and 4xlarge: larger sizes requiring more memory and CPU power.
B. Benefits of EC2

AWS' resources are increasingly using technology changes to stay at the top and maximize
profits, and Elastic Cloud Compute (EC2) instances are the backbone of the cloud
deployments. (AWS, 2023).
Following are some benefits of using AWS EC2:
 Complete Control: Your instances are entirely under your control, and you may
interact with them just like any other system thanks to root access. Using web service
APIs, you may stop any instance while keeping the data on the boot partition and then
resume it later. With web service APIs, you may remotely restart instances and view
their console output.
 Secure: Security at AWS is the highest priority. AWS offers data centers and networks
built to meet the security demands of the most sensitive organizations. In combination
with Amazon VPC, Amazon EC2 provides your compute resources with robust
networking capabilities.
 Flexible cloud hosting services: You can select from a variety of operating systems,
software packages, and instance kinds. With Amazon EC2, you may choose the best
RAM, CPU, instance storage, and boot partition size configuration for the operating
system and application of your choosing.
 Reliable: With Amazon EC2, you can deploy replacement instances rapidly and
predictably. The service runs with AWS’ proven network and data centres. As part of
the Amazon EC2 Service Level Agreement, each Amazon EC2 region commits to
99.99% availability.
 Integrated: AWS provides a complete, secure solution for computing, query
processing, and cloud storage across a wide range of applications with Amazon EC2
integrated with Amazon Simple Storage Service (Amazon S3), Amazon Relational
Database Service (Amazon RDS), and Amazon Virtual Private Cloud (Amazon VPC).

Knowledge Check
Question 1:

Question 2:
Question 3:

Answers:
Question1: Reserved Instances.
Question2: Compute Optimized.
Question3: False.
II. Setting Up Your EC2 Environment
A. Creating an EC2 Instance

Fig: Launch an instance.

Fig: Selecting the AMI


Fig: Select EC2 instance type.

Fig: creating Key Pair.


Fig: Key Pair selected.

Fig: Configuring Network setting.


Fig: Configuring Storage.

Fig: Finally Launching Instance.


Fig: Instance in Pending state.

Fig: Instance created successfully and in running state.


Fig: Instance Summary.

B. Configuring Security Groups

Fig: Security Group in Network & Security.


Fig: Inbound rules allow connectivity from the outside to the ec2 instance.

Fig: Edit Inbound rules.


Fig: Outbound rules.

C. Connecting to Your Instance

Fig: Selecting Instance.


Fig: connecting instance.

Fig: Connecting instance using EC2 instance connect.


Fig: instance connected.

Fig: running command to check the connectivity.


References

AWS. (2023). Economics 2: EC2. Amazon.


https://aws.amazon.com/ec2/ec2-get-started/#:~:text=Amazon%20EC2%20reduces
%20the%20time,capacity%20that%20you%20actually%20use.

AWS. (2023). Economics 2: EC2. Amazon. https://aws.amazon.com/ec2/instance-types/

You might also like