# EC2

**Here is the basic way to create a VM in AWS**&#x20;

**How we creating Instances manually :**

**Step 1:** Please create a account in amazon(console.aws.amazon.com) with your email address\
**Step 2:** Click on EC2 \
**Step 3:** Click on Instances\
**Step 4:** Click on Create Instances and enter name of server, OS type, Network, Security group and create a key to ssh node. Cick on lunch Instances

<figure><img src="https://1186894440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9wnMXVEmEJ7k6VEhLJYN%2Fuploads%2FKilEG2GShuoAXIx3eplz%2FScreen%20Shot%202022-11-06%20at%201.38.01%20AM.png?alt=media&#x26;token=de170a15-5e3c-43c5-90cb-fb3088d9c1a1" alt=""><figcaption><p>Server is up and running with a webserver-lin name </p></figcaption></figure>



**Step 5:** To connect server, select on node and click on connect(which you can see on top) Once you click on connect you will direct to new page where we can get a information about how to connect server using ssh.

<figure><img src="https://1186894440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9wnMXVEmEJ7k6VEhLJYN%2Fuploads%2FQDVCX2qOfcbAa18c1yie%2FScreen%20Shot%202022-11-06%20at%201.41.47%20AM.png?alt=media&#x26;token=8649067b-9cc3-4570-a16f-afe13d909ded" alt=""><figcaption></figcaption></figure>

Run  **chmod 400 aws.pem** when you have download key and so ssh on terminal. Hence VM is up and running&#x20;

<figure><img src="https://1186894440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9wnMXVEmEJ7k6VEhLJYN%2Fuploads%2F7qP5uM2M4UH7UhreJtjD%2FScreen%20Shot%202022-11-06%20at%201.45.01%20AM.png?alt=media&#x26;token=4decf517-030d-40d1-9da1-e0c4434b10c2" alt=""><figcaption></figcaption></figure>
