Pricing Login
Pricing

DevOps and Security Glossary Terms

Glossary Terms
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

AWS EC2 - definition & overview

In this article
What is AWS EC2?
What's the difference between EC2 and other Amazon AWS offerings?
The use and basics of AWS EC2
Amazon EC2 features
How does EC2 autoscaling work?
AWS EC2 benefits
Managing EC2 clusters with ECS
What is AWS EC2?
What's the difference between EC2 and other Amazon AWS offerings?
The use and basics of AWS EC2
Amazon EC2 features
How does EC2 autoscaling work?
AWS EC2 benefits
Managing EC2 clusters with ECS

What is AWS EC2?

Amazon Web Service EC2 (Amazon Elastic Compute Cloud), one of Amazon Web Services' most well-known services, offers businesses the ability to run applications on the public cloud. An EC2 instance is simply a virtual server in Amazon Web Services terminology. With an EC2 instance, AWS subscribers can request and provision a computer server within the AWS cloud.

Key takeaways

  • EC2 also allows users to build apps to automate scaling according to changing needs and peak periods. It makes deploying virtual servers and managing storage simple, lessening the need to invest in hardware and helping streamline development processes.
  • EC2 setup involves creating an Amazon Machine Image (AMI), which includes an operating system, apps, and configurations.
  • AWS provides an autoscaling service designed to provide automatic scalability for its various services, including EC2.

What's the difference between EC2 and other Amazon AWS offerings?

Amazon has several product offerings. Here we'll quickly describe the differences between EC2 and other AWS products like S3 and ECS.

EC2 and S3: Where EC2 is like a remote computer running Windows or Linux, S3 is simply a storage service for storing large binary files.

EC2 and ECS: AWS EC2 lets you launch several instances, whereas ECS is a container service similar to Docker. ECS allows you to launch container applications.

EC2 and Amazon EBS: Amazon Elastic Block Store (Amazon EBS) provides block-level storage volumes for an EC2 instance.

EC2 and AWS Lambda: AWS Lambda can be considered an EC2 Container Service (ECS) framework that uses containers to run a piece of code representing your application.

EC2 and Amazon RDS: Amazon Relational Database Service (Amazon RDS) database instances are similar to Amazon EC2 instances because there are different families to suit different workloads. RDS automatically manages time-consuming tasks, such as configuration, backups, and patches, and the Amazon EC2 cloud computing platform lets you create as many virtual servers as you need.

EC2 and Amazon CloudWatch: The CloudWatch agent collects metrics and logs from Amazon EC2 instances and on-premises servers.

EC2 and Amazon Linux AMI: The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2).

The use and basics of AWS EC2

Is EC2 a virtual machine?

Developers can create virtual machine instances and easily configure models' capacity scaling using the EC2 web interface. An Amazon EC2 instance also allows users to build apps to automate scaling according to changing needs and peak periods. It makes deploying virtual servers and managing storage simple, requiring less hardware and helping streamline development processes

How is EC2 billed?

EC2 pricing depends on the hours and size of an instance, region, and operating system

How do you set up AWS EC2?

EC2 setup involves creating an Amazon Machine Image (AMI), which includes an operating system, apps, and configurations. That AMI is loaded to the Amazon Simple Storage Service (S3) and registered with EC2. Users can then launch virtual machines as needed.

Amazon offers different instance types of EC2 for varying requirements and budgets in the AWS Marketplace, including hourly, reserved, and spot rates.

How many EC2 instances can you have per region?

AWS has a limit of 20 instances per region.

How much does a stopped EC2 instance cost?

Stopped EC2 instances do not incur any charges. However, you will be charged for Elastic IP addresses, EBS volume, or used S3 storage. You'll want to pause or delete these services to mitigate extra charges.

How to access the EC2 instance?

Connecting to your AWS EC2 console is very straightforward. You'll want to:

Begin by opening your Amazon EC2 console

Choose the instance that you want to connect to

Click "Connect"

How to add EBS volume to the EC2 instance?

Adding EBS volume to your EC2 instance is done in 4 steps.

In EC2, select Volumes

Choose your preferred size and type

Select your newly created volume, and right-click to attach the volume

Select the EC2 instance from the menu

What are the AWS EC2 instance sizes?

A1: a1.medium| a1.large | a1.xlarge | a1.2xlarge | a1.4xlarge | 1.metal

C4: c4.large | c4.xlarge | c4.2xlarge | c4.4xlarge | c4.8xlarge

C5: c5.large | c4.xlarge | c4.2xlarge | c5.4xlarge | c5.9xlarge | c5.12xlarge | c5.18xlarge | c5.24xlarge | c5.metal

C5a: c5a.large | c5a.xlarge | c5a.2xlarge | c5a.4xlarge | c5a.8xlarge | c5a.12xlarge | c5a.16xlarge | c5a.24xlarge

C5d: c5d.large | c5d.xlarge | c5d.2xlarge | c5d.4xlarge | c5d.9xlarge | c5d.12xlarge | c5d.18xlarge | c5d.24xlarge | c5d.metal

C5n: c5n.large | c5n.xlarge | c5n.2xlarge | c5n.4xlarge | c5n9xlarge | c5n.18xlarge | c5n.metal

C6g: c6g.medium | c6g.large | c6g.xlarge | c6g.2xlarge | c6g.4xlarge | c6g.8xlarge | c6g.12xlarge | c6g.16xlarge | c6g.metal

D2: d2.xlarge | d2.2xlarge | d2.4xlarge |d2.8xlarge

Are EC2 instances resizable?

You can resize instances in Amazon EC2 if the new instance types are compatible by:

Virtualization-type Linux AMIs are paravirtual (PV) or hardware virtual machines (HVM). You cannot resize an instance launched as a PV to an instance of HVM.

Architecture New instance types can only launch to the same processor architecture. For example, 32-bit AMIs can only resize to other 32-bit instances.

Network You cannot resize to an EC2-Classic from newer instance types. More unique instance types must launch in a VPC.

Enhanced networking requires necessary drivers, and you cannot resize to an instance that does not support them.

NVMe To resize to instances that use NVMe, you must first install the NVMe drivers on your existing instance.

Amazon EC2 features

Several benefits and features draw developers to EC2 for cloud computing. Chief among these are:

Responsiveness to changing capacity requirements: The easy scaling of EC2 eliminates development obstacles when applications require more resources.

Flexibility in configurations: Users can choose memory size, CPU, and boot partition size optimized for their OS.

Integration: EC2 can integrate with other AWS services, such as RDS, SimpleDB, and SQS.

Precise control: Users get administrative access to their instances, can stop and start instances while retaining boot partition data, and can access console output for the instance.

Security: Users can control which instances remain private and have internet exposure. EC2 leverages Amazon Virtual Private Cloud (VPC) for security, and businesses can connect their secure IT infrastructure to resources in VPC.

Cost: Among several pricing options, EC2 offers affordable hourly rates.

How does EC2 autoscaling work?

AWS provides an auto-scaling group service designed to provide automatic scalability for its various services, including EC2. Autoscaling ensures that you have enough EC2 instances to run applications, and before running a service, you designate autoscaling groups. These groups can have a minimum or a maximum number of EC2 instances that kick in automatically if an instance has an error or failure.

CPU credits are a form of currency that allows T2 instances to expand CPU performance beyond the standard baseline of EC2. T2 instances earn CPU credits every hour, equaling one full minute of the full CPU core. Once your T2 instance runs out of CPU credits, its performance reduces to the limited baseline.

AWS EC2 benefits

EC2 has several benefits. One of the main benefits of AWS EC2 is its elastic load balancing, which automatically distributes incoming application traffic across several instances while identifying unhealthy instances, and reroutes traffic to the healthy versions until restored.

Additional benefits include:

  • EC2 reduces the time to boot new servers
  • Scaling capacity based on changes to computing requirements
  • Complete control of servers
  • Flexibility with operating systems
  • Built-in security

Click here to learn more about Sumo Logic EC2 Container Monitoring Tools.

Managing EC2 clusters with ECS

The EC2 Container Service (ECS) uses EC2 instances for a quick and easy way to set up and scale a container cluster. Doing this removes the headaches involved with managing an internal cluster management infrastructure and makes it simple to establish containers as the foundation of an application. Explore the Sumo Logic app for real-time analysis of ECS data, which provides metrics collection from the instances of your choice.

Like EC2, the ECS service is easy to scale, so it can readily adapt to an application's changing capacity needs. It allows for scheduling ongoing batch processes, services and applications and offers integration through its API with other AWS products and external programs. Interested in learning more about AWS services? Click here to learn more about AWS Monitoring.

Complete visibility for DevSecOps

Reduce downtime and move from reactive to proactive monitoring.