← Back to Blog

My First Steps into AWS: Setting Up an EC2 Instance

May 10, 2024

It All Starts with a Virtual Server



My journey into cloud computing officially began today. The first logical step? Launching a virtual server. In the world of AWS, this means getting to know the Elastic Compute Cloud, or EC2.

The AWS Management Console was a bit intimidating at first, but after some clicking around, I found the "Launch Instance" button. Here are the key steps I followed:

1. **Choosing an AMI**: I went with the Amazon Linux 2 AMI. It's free-tier eligible and comes with many tools pre-installed.
2. **Instance Type**: The t2.micro was the obvious choice for a beginner, and it's also part of the free tier.
3. **Key Pair**: This was crucial for security. I created a new key pair and downloaded the .pem file. You have to be careful to keep this file safe!

Here's the command I used to connect via SSH after setting the right permissions for my key file:

chmod 400 my-aws-key.pem
ssh -i "my-aws-key.pem" ec2-user@your-instance-public-dns.com


It was a magical moment seeing the welcome message from my very own cloud server! The feeling of having this piece of infrastructure at my command, ready to serve applications to the world, is incredible. Next up, I plan to install a simple web server.