How To Create an Ec-2 Instance ?
Tags: aws, beginners, devops, career
Published: 2022-07-08 09:25:39

##  **What is EC-2** 

- 
Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud.

## **Let See What are The Various Steps For Creating a Ec-2 Instance** 

- 
First Open The Aws and Login Through Your ID And Passwd Then Your Aws Console Will Come up .

- Then Search A Ec-2 And Then Open it after click that Launch Instance

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hz7ygts8qw2rhckxmobw.png)

- Then Choose AMI( Amazon Machine Image ) it's a supported and maintained image provided by AWS that provides the information required to launch an instance 

- You must specify an AMI when you launch an instance. You can launch multiple instances from a single AMI when you require multiple instances with the same configuration

- And We will Select Amazon Linux 2 AMI a Free Tier

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gb51cr4k5akwc0j6lcws.png)

- Then The Second Step is Choose Instance Type, we will Select a T2 micro( Free Tier ) In that we get 1CPU and 1GB RAM and The Network Performance we get is Low to Moderate .

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07663i4w02t0y7oo2z5a.png)

- Then We Configure a Instance, We will Take a 1 instance and take a Default vpc and in a ap-south-1a availability zone and Then  Enable The Public IP . 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n5quaenrnc7d0u0r6xbk.png)

- After That We Will Select A Storage, By Default We get A 8GB of Volume size in EBS( Elastic Block storage) as a Root Volume. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ld1ee29360gkffldu5xn.png)

-  Then We will give a Proper Tag, Tags will be applied to all instances and volumes .

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/knesg9njoeu2iurull21.png)

- Then The Main Step is security group, we Create a New Security Group in That we open SSH (22) for admin and other one is HTTP (80) for Everyone(0.0.0.0/32) and in SSH give a My Ip and HTTP for open to The World

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2lmav46j8tywnydhppc6.png)

- Then In Last Step is Review in that we have to Launch the server.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ottj645d5secchwhqvb9.png)

- In Last Their Is a one Key-pair, A key pair is a combination of a public key that is used to encrypt data and a private key that is used to decrypt data


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/onl8ug9bask4kffnbg7l.png)

- We will give a Name of New-kay-pair and Download it .

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/te4x7gh58gvqi1r96z8e.png)

- In Last View Instance 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i1tu5516ua0dzmotl98z.png
)

- Now Your EC-2 Instance or Virtual Machine is Created. After Creating This EC-2 You get a 2 IP Such as Public IP and One is Private IP Public IP of Outside communication through Internet And the Private IP is For Internal Connection through Intranet.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1pmuz7utrjixkrd09fi.png)









**Thank You for Reading this Blog, Hope You Like It Please share and Like
**


#aws #EC-2 #cloud #firstblog