Amazon’s AWS is a hot topic when it comes to a good cloud service provider. AWS is essentially a cloud computing platform. AWS is indeed the industry’s oldest player, with years of cloud computing experience. In the second quarter of 2021, AWS generated a record $14.8 billion in net sales, accounting for just over 13% of Amazon’s total net sales.
Amazon controls nearly a third of the cloud market, more than twice as much as its nearest rival. Even as a leading cloud computing platform, Amazon Web Services (AWS) is the company’s primary profit generator.
Introduction
AWS provides servers, storage, connectivity, remote computing, email, mobile apps, and security, among other services. AWS cloud consulting is becoming increasingly popular as companies consider how going virtual with AWS can help them reap the benefits of digital technology. So you’ve chosen Amazon Web Services (AWS) as your cloud service provider. There are a variety of mobile services available, but Amazon EC2 is one of the most basic and widely used.
Today we are going to discuss how we can create the EC2 instances in AWS; let’s get started with it.
What is an EC2 instance?
In Amazon Web Services jargon, an EC2 instance is simply a virtual server. Elastic Compute Cloud is the acronym for Elastic Compute Cloud. It is a web service that allows an AWS subscriber to seek and allocate a compute server in the Amazon Web Services cloud. The instance would be charged per hour, with rates varying depending on the type of instance selected. AWS offers a variety of instance types to meet the user’s specific business requirements. As a result, you could really rent an instance depending on your own CPU and memory needs and use it for as long as you need it.
For Candidates who want to advance their career, AWS Online Training is the best option.
Step-by-step instructions for setting up an EC2 instance in AWS. So, are you all set? Let’s get started!!!
Step1: Log in to the AWS Management Console and click on the EC2 tab.
Open the EC2 service in the AWS Management Console after logging in.
You can then either go to Services -> Compute -> EC2 or Services -> Compute -> EC2.
Alternatively, type EC2 into the search bar and press Enter. When you see the EC2 option, select it.
This will take you to the EC2 dashboard, which looks like this.
Step2: Select Launch Instance.
You can see an overview of all the EC2 resources throughout your selected region once you’re in the EC2 dashboard.
Click Launch Instance in AWS to start creating an EC2 instance.
Before launching your instance, make sure you’ve selected the correct region.
Step 3: Image of an Amazon Machine selection (AMI)
You’ll be taken to a 7-step configuration screen after clicking Launch Instance.
There are numerous configurations available, but we’ll only go over the ones that are required.
Let’s begin by selecting an AMI.
Now that you are wondering about the term AMI we will give you a brief definition-
What is AMI?
AMI, or Amazon Machine Image, would be a pre-configured template for your instance that includes software configurations such as the operating system and application server.
But some things you should take a note of are:
Once you create an EC2 instance in AWS, you must specify an AMI.
We are going to use Linux 2. It also qualifies for the free tier. You can make your choice based on your needs.
If you’re launching a learning instance, make sure to choose an AMI that says free tier eligible, as shown in the screenshot below.
Step 4: Select a Type of Instance
You’ll be taken to the instance type selection screen after selecting AMI.
The selection of hardware configurations for your instance, such as CPU, memory, storage, and networking capacity, is known as Instance Type.
AWS offers a variety of instance types to accommodate various use cases.
T2.micro is my choice because it is free. It has a 1vCPU and 1GB memory, which is sufficient for learning.
You have the option of reviewing and launching with the default configuration or going ahead and configuring the instance details. Let’s at least look at the instance details screen to see everything it has to offer.
Step 5: Instance Details can be configured.
You could indeed configure a ton of information regarding your instance in the instance details screen, for example-
VPC and subnet wherein you would like to launch an instance. How many instances do you want VPC and subnet wherein you would really like to launch an instance
- Assign a public IP address to the instance.
- Add an IAM role to an instance, and so on.
- The list is enormous!!!
But don’t worry, we’ll only pick the most basic.
We set the Number of Instances to 1 and chose the VPC and Subnet where we wanted our instance to be launched.
You can also see some other options if you scroll down. But, for the time being, let’s ignore them. But, to really be honest, the majority of them are self-evident.
We will end up leaving everything as is and click on the add storage button
Step 6: Add more storage
As the title suggests, you can then either alter the root volume settings or add a new volume if necessary. We are going with the default settings, but feel free to change them to suit your needs.
Step 7: Now we can add tags
Tags aren’t required for your instance, but they’re always a good idea.
They are essentially key-value pairs that provide extra details about the instance, such as the instance’s name or environment.
Name = DemoInstance is the only tag we’ve used.
Because the DemoInstance tag applies to Instances, Volumes, and Network Interfaces, you’ll notice that they all have the same name.
It’s worth noting that if you do not want the tag to just be applied, you could always uncheck the checkbox next to any of them.
Step 8: Set up a Security Group
You can control traffic into and out of your EC2 instance using Security Group.
It’s essentially an extra firewall provided by AWS that allows you to block unwanted ports while also allowing you to open required ports.
As such that we can connect to my instance; we’ve left the default security group configuration with only port 22 open for SSH.
However, if you intend to use your instance as a web server, feel free to open ports 80 and 443 on your instance.
Step 9: Review and Publication
Examine all of the settings you’ve chosen. You can always go back and make changes by clicking the previous button or directly clicking on a specific step.
If everything appears to be in order, click Launch.
Step 10: Make/Choose a Key Pair
When you click launch, a popup window will appear asking you to select an existing key pair or create a new one.
You might be perplexed. What exactly is a key pair?
A key pair is made up of a private key (which you keep) and a public key (which you share) (AWS store). They work together to allow you to securely connect to your instance without the use of a password.
To be more specific, you secure your instances by using the private key rather than a password.
We’ll start over and make a new one.
Select Option to create a new key pair – > give your key pair a name -> Obtain a Key Pair -> Initiate an instance
You can also proceed without a key pair by selecting “Proceed without a key pair.” You will, however, never be able to SSH into your instance.
To use keypair, first, download it and then double-click it. Instances are launched.
As shown below, the status of your instance is launching.
The state of the instance is currently running. You can see more information about your instance by clicking on the Instance ID.
In the AWS cloud, you create an EC2 instance or virtual server.
Conclusion
As discussed earlier, we learned how to create an on-demand EC2 instance in great detail. Since it’s an on-demand server, you could perhaps keep it running when this is needed and ‘Stop’ it when it’s not. This allows you to save money. You now understand the fundamentals of creating EC2 instances, as well as some concepts and also how to launch an instance and gain access to it. We hope you found this tutorial useful.
Author Bio
Meravath Raju is a Digital Marketer, and a passionate writer, who is working with MindMajix, a top global online training provider. He also holds in-depth knowledge of IT and demanding technologies such as Business Intelligence, Salesforce, Cybersecurity, Software Testing, QA, Data analytics, Project Management and ERP tools, etc.