An Amazon EC2 instance acts as a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure. EC2 makes development easier for developers by simplifying the process of scaling up and down and offering resizable computing capacity.
How to Launch AWS EC2 Instance from AWS Console?
Prerequisites:
- AWS Account
Steps to launch the instance:
Go to EC2 Dashboard, and Click on the Launch Instance button.
Under the Name and Tags section, write down the name of the instance
Under AMI - Amazon Machine Images (Application and OS images) section, choose the image name i.e. select the os (operating system)
Under the instance type section, select the type of machine, no. of vCPUs and memory you want. You can also select the free tier eligible option t2.micro
Under the Key pair section, for the Key pair name, choose the key pair that you created when getting set up. Download the key pair, and make sure to keep it safe as you will not be able to download it again.
Under the network setting, here we can change vpc, subnet, security group, and other configurations.
In the last step, Review a summary of your instance configuration in this panel, and when you're ready, click on the Launch instance button.
Steps to access the instance:
Select the instance, then click on connect button.
Select SSH client and follow the steps
Or Run the command: ssh -i “<path of pem file>” ubuntu@<Instance IP address>