Amazon Elastic Compute Cloud (EC2) is the Amazon Web Service. EC2 is use to create and run virtual machines in the cloud. EC2 is nothing but a virtual computer.
How to create an EC2 instance in aws?
Below steps shows how to Create EC2 instance in aws:
Steps:
1.Create ec2 instance in aws firstly login AWS console. After aws console login click on AWS management console. Click on Sign in to the Console.
2.To sign in the console, select Root User option & type user name & password.
3.After sign-in as root user open Console Homepage,in this page go to all services & search for EC2,Click on EC2 service.
4.Now you can see the EC2 services page, click on the Instances(running) option as shown in the below screenshot, you can view running Instances if you don’t have any instances.
5.To create a new instance, click on Launch instances button on right upper corner as shown in the below screenshot.
5. Follow below steps to Launch an instance:
Type new instance name in Name & Tags field.
2.You can see the number of depending measures you choose on anyone OS images as you wish. I am choosing Amazon Linux OS because it is free tier eligible.
3.Leave default option as it is, to login instance we need to create key pair,click on create new key pair.
4.You can see new popup window type key pair name,select RSA key pair type,private key file format in this format use PuTTY in system to connect EC2 instance we need to create a .ppk file so choose .ppk file and click on create key pair option.
5.After creating key pairs download the key pairs & keep safely it will be useful while connecting EC2 instance remotely .
6.Go to the network setting, select on
Allow SSH traffic From
Allow HTTPS traffic from the internet
Keep the remaining details default.
6.Click on Launch instance
7. The instance is created successfully & Success message shown with instance ID as shown in below screenshot.
Scroll down the page and click on View all instances button.
7. Now as we can see the created ec2 instances(user11) is running.
Connecting EC2 Instance on local Machine via Putty
PuTTY is a utility to connect Linux server systems from local computers to remote computers. PuTTY is a tool for transferring the files securely between computers using SSH connection.
To connect Virtual machine(EC2)instance from local computer to remote via PuTTY for the below steps:
1.Just Copy the public IPv4 address of EC2 instance.
9. Go to windows & type search for PuTTY & open PuTTY, once PuTTY configuration window is opens pest the copied IP address under host name for IP address field & leave port no. as it is.
10.Now in PuTTY configuration window, under category go to SSH field, expand SSH & go to the Auth field & expand Auth, after expanding Auth go to the credential field.
11. Now Credentials field is open then browse private key in authentication field & click on Open option as shown in below screenshot.
12.After clicking on the option new popup window opens, the login window with username & password.Amazon Linux is open, then runs different linux commands as shown in below screenshots.
0 Comments