How To Create An EC2 Instance in AWS.
Source: Dev.to

Launch Your Digital Frontier: The Ultimate Guide to Creating Your First AWS EC2 Instance
In the modern digital landscape, the ability to rapidly deploy and scale computing resources is a necessity. AWS Elastic Compute Cloud (EC2) lets you rent virtual servers—called instances—on Amazon’s robust infrastructure, giving you control over virtually every aspect of your compute environment. Whether you’re hosting a high‑traffic website, deploying a machine‑learning model, or testing a new application, this guide will walk you through the essential steps to launch your very first EC2 instance.
Step‑by‑Step: Launching the EC2 Instance
A. Navigate to the EC2 Dashboard
- Log in to the AWS Management Console and click Launch Instance.

B. Choose a Name and an Amazon Machine Image (AMI)
- Give the server a descriptive name.
- Select an AMI, which serves as the template for the instance’s operating system and initial content.

C. Choose an Instance Type
- Pick the hardware configuration (CPU, RAM, storage, network performance).
- For the Free Tier, select t2.micro or t3.micro.

D. Create a Key Pair
- Generate a new key pair (or use an existing one).
- Download the private key file (
.pem) to your computer; you’ll need it to connect to the instance.

E. Configure Network Settings and Firewall
- Accept the default VPC and subnet settings.
- In the security group, allow RDP (port 3389) and HTTP (port 80) traffic (or adjust ports as needed).

F. Launch the Instance
- Review your configuration and click Launch Instance.

G. Retrieve the Administrator Password (Windows Instances)
- In the EC2 console, select Connect, then choose RDP client.
- Click Get Password.
- Upload the previously downloaded
.pemkey pair file. - Decrypt the password to obtain the Windows administrator credentials.
