Needless to say that AWS Amazon is real leader in Cloud platform. Many reputed companies’ infrastructure is hosted on AWS Cloud. If you have never worked with Amazon AWS platform, do not worry, we would explain all the important step by step tutorials to learn Amazon AWS easily. In this post, we will focus on “how to create EC2 instance using AWS console”.
Recommended: Amazon EC2 Getting Started Guide.
Steps to Create EC2 Instance
There are various steps that you need to perform to create an EC2 instance. Let’s o with each off them in detail.
Signing In to AWS Console
This is the first and most basic step that we assume should be self-explanatory. Just click the EC2 option under the Compute section as shown in the following figure.
Launch EC2 Instance
To launch an EC2 Instance, click the Launch Instance button as shown in the following figure.
Selecting EC2 AMI
What is AMI?
An AMI is a template that contains the software configuration including operating system and application server.
You can select an AMI provided by AWS or you can select one of your own AMIs. Here, for the testing purpose, select the AMI type as Ubuntu and then proceed to next.
Recommended: Learn more about EC2 Instance Type
Note: You can also change the instance AMI type later as per the future requirements.
Selecting EC2 Instance Type
EC2 Instance Types are actually profiles with pre-defined hardware and other resources settings such as number of vCPUs, RAM and Disk size. You can choose any of the available instance type as per your requirements. However, instance type containing more hardware resources would be more expensive than others. Luckily, there is one option called Free Tier that allowed you to create and use a T2 Micro instance free of cost with limited time of period. For the testing purpose, select the T2 Micro instance type and proceed to the next page.
Recommended: Learn more about EC Instance Type
Configuring EC2 Instance Settings
In this page, you need to specify some basic settings for your EC2 instance. The following are the basic settings that you need to adjust:
- Network: Use the default VPC or create a new one.
- Subnet: Use the default subnet or create a new subnet as per your requirements.
- Auto assign IP: If enable, then a public IP would be assigned to this EC2 instance, else no public IP would be assigned to this instance.
Adding Storage with EC2 Instance
In this page, you can use the default allocated storage size (8 GB), you can increase it, or you can also add multiple volumes as per your storage requirements. For the testing purpose, just accept the default setting and proceed to the next page.
Adding Tags for EC2 Instance
In this page, you can define tags to identify and differentiate your instance. As of now, adding Name tag would be sufficient. Click Add Tag, specify instance name, and proceed to the next page.
Configuring EC2 Security Group
AWS security groups are actually virtual firewall that controls the inbound and outbound network traffic. Here, at least you need to allow SSH service for remote access. For this exercise, you can allow SSH it for all IPs, but we highly recommend to select My IP Address option to limit the SSH access. In the production network, be careful and only allow the required ports in security group.
Launching EC2 Instance
Proceed to the Review page and click Launch to launch instance. The Key Pair window will be displayed. Here either you can use an existing Key Pair or create a new one. For the first time, select create a new key pair, specify key pair name, and then click Download Key Pair.
Finally, click Launch Instances to launch this instance. The instance will be ready within few minutes and you would see it in the EC Instance list in AWS console.
That’s all you need to do to create EC2 instance using AWS Amazon console. Now, you can connect your instance and perform the management task as per your requirement. You can use Putty, GitBash, or any other tool as per your comfort to connect an EC2 instance.
We will discuss all the remote connect options for an EC2 instance in a separate article, so stay connected with us. Please like and share us.