Spinning up your first EC2 instance can feel like trying to start a spaceship ๐. But donโt worry, you donโt need to be an astronaut (or a DevOps wizard) to do it!
โ
Prerequisites
Before you begin, make sure you have:
An AWS account
Access to the AWS Management Console
An SSH key pair (or be ready to create one)
๐ฅ Step 1: Log in to the AWS Management Console
Go to the AWS Console and search for EC2 in the search bar.
๐ฅ Step 2: Click on "Launch Instance"
On the EC2 Dashboard, click the Launch instance button to begin the setup.
๐ฅ Step 3: Name Your Instance
Give your instance a clear and descriptive name.
๐ฅ Step 4: Choose an Amazon Machine Image (AMI)
Select an AMI (Amazon Machine Image). For beginners, the Amazon Ubuntu (Free tier eligible) is a safe choice.
๐ฅ Step 5: Choose an Instance Type
Pick the instance type. The t2.micro or t3.micro is free tier eligible and works well for testing.
๐ฅ Step 6: Configure Key Pair
Select an existing key pair or create a new one. This will be used later to connect via SSH.
โ ๏ธ Save the .pem file securely because you wonโt be able to download it again.
๐ฅ Step 7: Configure Network Settings
In Network settings, make sure to allow SSH (port 22) so you can connect, and optionally HTTP and HTTPS if you are running a web app.
๐ฅ Step 8: Storage Settings
Leave the default storage, usually 8GB, or adjust if your use case requires more.
๐ฅ Step 9: Launch the Instance
Review your configuration and click Launch instance ๐
๐ฅ Step 10: Verify Instance is Running
Go back to the EC2 Dashboard, and you should see your instance with the status Running.
๐ฅ Step 11: Connect to Your Instance via SSH
Step by Step
Put in your created key pair
๐ฏ Congratulations!
Youโve just launched and connected to your first EC2 instance! ๐ฅณ
From here, you can:
Install a web server (sudo yum install httpd)
Deploy an app
Or just poke around and learn Linux in the cloud
๐ก Tip: EC2 is your gateway into AWS. Once youโre comfortable, check out Auto Scaling, Elastic Load Balancers, and EBS volumes.















Top comments (0)