How to create ec2 instance in  aws account

How to create ec2 instance in aws account

Introduction:

An EC2 instance provides on-demand, scalable computing capacity in AWS Cloud. EC2 instance allows you to launch virtual servers in the cloud. EC2 instances widely used for various purposes, such as running applications, hosting websites, and performing data processing tasks. You can add capacity (scale up) to handle compute-heavy tasks, When usage decreases, you can reduce capacity (scale down) again.

Steps to Create an EC2 Instance:

  1. Sign in to the AWS Console.

  2. Search to the EC2 instance by searching for "EC2" in the services search box.

  3. Go to the "Instances" link in the left navigation panel.

  4. Go to "Launch Instance" button to start the instance creation.

  5. Give any name of server e.g-Windows server.

  6. Choose an Amazon Machine Image (AMI):

    Choose the AMI that fulfills your requirements. It contains the operating system and other software for your instance. Here I am Taking Windows server.

  7. Choose an Instance Type:

    Select the instance type based on the resources (CPU, memory, storage) you need for your workload. For learning purposes select t2.micro(Its Free).

  8. Create new key pair:

    You can use a key pair to securely connect to your instance. Ensure that you have access to the selected key pair before you launch the instance.
    .pem For use with OpenSSH and .ppk For use with PuTTY.

  9. Configure Instance Details:

    Configure various settings like network settings, subnet, security groups, etc. as per your requirements.

  10. Configure Security Group:

    Define the security group rules that control inbound and outbound traffic for your instance.

  11. Add Storage:

    Specify the size and type of storage you need for your instance.

  12. Instance Launch:

    Select created instance--> Go to connect-->Click on RDP client --> Download remote desktop file-->Go down click on get password-->click on upload private key file. sellect the .pem file which is created(Private key).

  13. Click on decrypt password and then coppy this password in notepad.

  14. Now click on the downloaded RDP then paste the decrypt password.

  15. Now your RDP is launched.