21 Sep 2022

Introduction to AWS EC2:

  • A web service from Amazon, EC2/Amazon Elastic Compute Cloud provides re-sizable compute cloud services. They are re-sizable as the user can quickly scale up/scale down the number of server instances based on the changes in the computing requirements.
  • An instance is a virtual server used for running applications on Amazon’s EC2. It is a tiny part of a larger computer with its own hard drive, network connection, and OS. But it is all virtual. The user can have multiple “tiny” computers on a single physical machine. These tiny machines are described as Instances.
  • Amazon offers several instances with different configurations for CPU, memory, and networking resources to suit the user’s requirements. Each type is available in different sizes that address the specific workload requirements.

Need of AWS EC2:

To work independently, developers need to buy some servers based on the correct capacity and computing power. They also have to take into consideration the everyday updating of security patches. They also have to troubleshoot any problem that might arise at a backend level in the servers.

Steps to run a system in EC2:

  • Login to your AWS account and click on AWS EC2.
  • Under create instance tag, click launch instance.
  • Select an Amazon Machine Image (AMI). AMIs are templates of OS that provide the data required to launch an instance.
  • To launch an instance, the user has to specify the AMI. It could be Ubuntu or windows server.
  • The AMIs could be preconfigured or the user can configure them on their own based on the requirements.
  • For pre-configuring AMIs, the user has to select them from the AWS marketplace.
  • For setting it up, go to quick-start and select one.
  • While configuring, the user will reach a point where they will have to select an EBS storage option. Elastic Block Storage (EBS) is a persistent block-level storage volume that is used with EC2.

Types of EC2 Computing Instances:

The type of computing required for an instance depends on the nature of the task. AWS EC2 offers 5 different types of instances which are as follows:

General Instances:

They are applicable-

For applications that need a balance of performance and cost.

Eg: email responding systems, where prompt response is required while keeping it cost, as it doesn’t require much processing.

- Compute Instances:

They are applicable-

For applications that need a lot of processing from the CPU.

Eg: analysis of data from a data stream.

- Memory Instances:

They are applicable-

For heavy applications that require a lot of RAM.

Eg: when the system has several applications running in the background ie. multitasking.

- Storage Instances:

They are applicable-

a) For applications that are large in size or have a data set that occupies huge space.

Eg: When the application is of large size.

b) For applications that require heavy graphics rendering.

Eg: 3D modeling.

Features of Amazon EC2 instance:

Features of EC2 instances are customizable including the number of virtual processors, storage, and memory available for the OS, and AMI on which the instance is based. The following are the features of the Amazon EC2 instance:

Operating system: EC2 supports multiple OS, such as Linux, Microsoft Windows Server, CentOS, and Debian.

Persistent storage: Amazon’s Elastic Block Storage (EBS) service enables users to attach block-level storage volumes to EC2 instances and can be used as hard drives. EBS empowers users to increase/decrease the storage available to an EC2 instance. It connects EBS volumes to more than one instance at the same time.

Elastic IP addresses: Amazon’s Elastic IP service helps to associate IP addresses with an instance. Elastic IP addresses can be transferred from one instance to another without the help of a network administrator.

Amazon CloudWatch: This web service supports monitoring AWS cloud services and applications deployed on AWS.

Automated scaling: Amazon EC2 Auto Scaling automatically adds/removes the capacity from Amazon EC2 virtual servers depending on the application’s demand.

Bare-metal instances: This virtual server instance consists of hardware resources such as a processor, storage, and network. They are not virtualized and do not run an OS, which helps to reduce their memory footprint and provide extra security and increase their processing power.

Pause & resume instances: EC2 instances can be paused or resumed from their last state. If an application uses multiple resources, it can be paused without incurring any charges for that instance usage.

Leave a comment: