This tutorial explains, how to create EC2 instance. We will learn how to connect instance using SSH in the next tutorial. Click here to go next tutorial
What is the EC2
An Ec2 Instance is a virtual server that provided by Amazon. Virtual Server is in the Amazon Elastic Compute Cloud(EC2) for running application on the Amazon Web Service(AWS).
To create an instance, follow the below steps:
Login to AWS
We need to create an Aws account to access Aws Service. If we have already an account then sign in Aws account to access Aws Service. Go to Aws Website (link).
Choose Amazon Machine Image
Choose Instance Type
We have to choose Instance Type require based on your business needs. We are choosing t2.micro instance type, which is a 1 CPU and 1GB memory server offered by AWS.
Now, Click on “Configure Instance Details” for further configurations
Configure Instance Details
Aws is offering to launch maximum 20 instances at a time, Here we are launching one instance. Here we are configuring some basic networking details for our EC2 server.Click on ‘Add Storage’ to add data volumes to your instance in next step.
Configure Security Groups
Here we are configuring Security Groups, we can restrict traffic on your instance ports. Here we added three rules to access instance ports – SSH, HTTPS & Http. This is an added firewall mechanism provided by AWS apart from your instance’s OS firewall.
Download Key Pair
- Choose Create a new key pair. Also we can choose existing key pair.
- Give a name to our key. Here We added Test-01.
- Click on ‘Download Key Pair’. After save it in the local
Launch the instance