How to Create an AWS EC2 Instance

AWS EC2 Instance Setup Guide
In this article, I will show you how to launch an EC2 instance in a step-by-step guide using the AWS Console, along with all key configurations.
๐Ÿ–ฅ๏ธ Step 1: Go to EC2
Login to your AWS Management Console, then navigate to EC2 from the services menu.
EC2 Dashboard
๐Ÿšฆ Step 2: Click on โ€œInstancesโ€
Then click on the Launch Instances button to start the setup.
Launch Instances
โš™๏ธ Step 3: Configure Basic Settings
Youโ€™ll see a screen like this:
Name: Give your instance a name (e.g., my-dev-server)
OS Image: Choose Ubuntu
Instance Setup
๐Ÿ” Step 4: Create a Key Pair
Click Create new key pair to generate SSH credentials.
Create Key Pair
Fill in the following:
Key pair name: my-ec2-key
Key pair type: RSA
Private key file format: .ppk (for PuTTY) or .pem (for OpenSSH)
Key Pair Options
๐Ÿ”’ Step 5: Set Up Security Group
Select the following options for easy setup:
โœ… Allow SSH (for terminal access)
โœ… Allow HTTPS (for secure web traffic)
โœ… Allow HTTP (for web access)
โš ๏ธ Make sure your IP is allowed under SSH for security reasons.
Security Group
๐Ÿ’พ Step 6: Choose Storage
Increase the volume if needed. You can go up to 30 GB under the AWS Free Tier.
Storage Settings
๐Ÿš€ Step 7: Launch the Instance
Now hit the Launch Instance button. Wait for AWS to provision your instance.
Launching Instance
โœ… Step 8: Success!
Once done, you'll see your new instance listed and running ๐ŸŽ‰
Instance Running
๐ŸŽ‰ Youโ€™re Done!
Congratulations! You've successfully launched an EC2 instance on AWS.
You can now connect using your key pair and start deploying your applications.