How To Understand and Choose Your First EC2 Instance on AWS

EC2 instances on AWS are virtual servers that can be used to run applications and services on the AWS cloud. They are characterized by resources such as CPU, RAM, storage capacity, or even bandwidth.

Before you even begin exploring the different AWS EC2 instances, it is necessary to know your needs and your use cases. You will, therefore, first need to know your applications well and what configurations are necessary to make them work.

Several questions need to be asked to know what characteristics are necessary for your applications to run correctly. This includes knowing the operating system, as well as the quantities you need for the following resources:

You may also be asked other questions about your use cases, such as the geographic area you are targeting to run your applications. This can be useful in cases, for example:

Understanding the Different Instances of Families

Now that you know more about your use cases and applications, you can look into the different types of EC2 offered by AWS!

AWS offers a classification into five main families, which are as follows:

1. Versatile: These are the most balanced instances between the different resources; they present a good compromise between CPU, RAM, network speed, etc. These are generally those that are used to host websites and/or to get started.

2. Optimized calculation: They emphasize processor performance. They can, therefore, perform a large number of calculations and are ideal for scientific modeling or any other application requiring intensive calculation.

3. Optimized memory: These are the instances that have the highest RAM. allow high-speed access to data stored in RAM. If you need quick access to a large database, then they will be ideal.

4. Accelerated calculation. These EC2s are similar to Optimized Compute but use GPUs. They, therefore, have even greater computing capacities. They can be used for machine learning applications, for example.

5. Optimized storage. If access to large amounts of data is important to you, then these instances may be ideal. They are designed for workloads that require high access and bandwidth to a large volume of storage.

These are general factors that will allow you to make an initial selection and direct you toward the AWS EC2 instances that seem to be the most suited to your uses. But once the most appropriate family has been selected, you will need to look at which instance will best suit your needs. And it won't be an easy task!

Understanding Instances

Once you have identified the family that seems to best suit your needs, you can look into choosing the one that will meet your needs. The characteristics of your applications determined in the first chapter will help you choose the AWS EC2 that suits you best.

You will then find yourself faced with many names, such as T2.micro, R6a.large, or even X2iedn.4xlarge. These nouns may seem complex to understand, but they are constructed as follows:

Let's now explain how to read the AWS EC2 instances that we mentioned previously:

Practical Case of Choosing Instances

Let's now move on to some practical cases to understand how to put this into practice.

A technology enthusiast wants to host his tech blog on AWS. To choose his EC2, he will follow the following reasoning:

He could have opted for other simpler solutions, such as CloudFront, but he still chose an EC2 instance because he uses many other services offered by AWS.

Company X has created an application that allows you to quickly consult the health data of its members. To choose well, they will follow the following reasoning:

Anxious to comply with HDS standards, they will also be forced to rent EC2 AWS instances in Europe, and more precisely, in the “eu-west-3” zone.

Conclusion

There are so many AWS EC2 instances that it will take you some time to familiarize yourself with all of them, but you now have a better understanding of what Amazon Web Services offers. The most recommended to start with (and also eligible for the free offer) is the t2.micro instance. Depending on your use case and the evolution of your applications, you may need to use others with higher specifications.

If, once your choice has been made, you need to increase the capacities of your instances, you can easily choose a new, more powerful type of EC2 or add new instances in parallel. Solutions such as Kubernetes, Karpenter, or even autoscaling can help you scale your instances to best meet your needs.

 

 

 

 

Top