Amazon EC2 is Amazon Elastic Compute Cloud. It is one of the most popular AWS services.
It is a web service that provides resizable computing capacity—literally, servers in Amazon's data centers—that you use to build and host your software systems.
Elastic Compute Cloud (EC2) is used as infrastructure as a service.
EC2 Mainly Consists of
1)EC2-(Elastic Compute Cloud) Renting Virtual Machines
2)EBS-(Elastic block storage) Storing data on Virtual Drives
3)ELB-(Elastic Load Balancer)Distributing load across machines
4)ASG-Auto Scaling Groups
EC2 INSTANCES TYPE
•Amazon EC2 provides a wide selection of instance types optimized to fit different use cases. Instance types comprise varying combinations of CPU, memory, storage, and networking capacity and give you the flexibility to choose the appropriate mix of resources for your applications.
•Each instance type includes one or more instance sizes, allowing you to scale your resources to the requirements of your target workload.
Let's take an example
m5.2xlarge
•m: instance class
•5: generation (AWS improves them over time)
•2xlarge: size within the instance class
EC2 Instance Type - General Purpose
•General purpose instances provide a balance of computing, memory and networking resources, and can be used for a variety of diverse workloads.
•These instances are ideal for applications that use these resources in equal proportions such as web servers and code repositories.
Note: If you don't want to be charged in AWS for using EC2 Instance You have to use t2.micro which is a General Purpose EC2 Instance.
EC2 Instance Type - Compute Optimised
•Compute Optimized instances are ideal for compute-bound applications that benefit from high-performance processors.
•Instances belonging to this family are well suited for batch processing workloads, media transcoding, high-performance web servers, high-performance computing (HPC), scientific modeling, dedicated gaming servers and ad server engines, machine learning inference and other compute-intensive applications.
EC2 Instance Type - Memory Optimised
Memory-optimized instances are designed to deliver fast performance for workloads that process large data sets in memory.
EC2 Instance Type - Storage Optimised
•Storage-optimized instances are designed for workloads that require high, sequential read and write access to very large data sets on local storage.
•They are optimized to deliver tens of thousands of low-latency, random I/O operations per second (IOPS) to applications.
EC2 Instance Types: example
In the Next blog, we will be looking after very important topics that is Security groups and EC2 instance purchasing options.