DEV Community

Ramu Ummadishetty
Ramu Ummadishetty

Posted on • Updated on

AWS Creating an EC2 Instance

EC2 stands for Amazon Elastic Compute cloud.Simple way you will get a VM in the cloud just like your PC.
Advantage of this EC2 is scalable computing capacity, can launch as many as virtual servers as you required.

Now will see how to configure EC2 in AWS
Before configuration make sure that you have sign up in AWS

Step1
click on services on top left and click on EC2 under compute section
Alt Text

step2
click on launch instance
Alt Text

setp3
Here in the search box please search and select for your required operating system that needed to be present in the instance
Alt Text
step4
Choose instance type based on your requirement
and click on next: configure instance details present below

step5
select your required region and number of instance and click on add storage
Alt Text

step6
select the storage and click on add tag
Alt Text

step7
click on add new tag name
Alt Text

step8
Here configure your security group like click on add rule and add what ever the protocols you needed
Alt Text

step9
click on review and launch instance
create new .pem file like it creates public key and private key
where you download private key which is used for connecting to instance from your machine
Alt Text
make sure that you .pem file only works for the selected region instance only
click on launch instance

Again click on service , EC2 and click on running instances

Alt Text

select and click on connect on top

Alt Text

You will find ssh client and ssh cmd
Alt Text

use that in your git bash or terminal to connect to server
Make sure you use 'sudo' if you get permission denied error

Note: Please select free instance if you are new to AWS

Top comments (0)