This week, I started my AWS training, and Day 1 was all about getting hands-on with EC2 instances, Linux basics, and web application deployment. In this post, Iβll share the key concepts I learned and how I practiced them step by step.
π₯οΈ Environments in the Software Lifecycle
Before working with servers, I learned about the different environments used in application development:
Development β For coding & initial unit testing.
Testing (QA) β Quality assurance checks.
UAT (User Acceptance Testing) β End-user validation.
CAT (Client Acceptance Testing) β Final client sign-off before production.
These environments ensure that the application is thoroughly tested before going live.
βοΈ Launching an EC2 Instance
Amazon EC2 (Elastic Compute Cloud) allows us to run virtual machines in the cloud. Hereβs how I launched my first instance:
Launch instance β Selected 1 instance and tagged it as abinaya-vm.
Choose instance type β t2.micro (Free Tier).
Select AMI β Linux AMI (preloaded with Python/Java).
Secure access β Generated a key pair (.pem β converted to .ppk for PuTTY).
Networking & Security β Configured Security Groups for:
SSH (port 22) β Secure login
HTTP (port 80) β Web traffic
HTTPS (port 443) β Secure web apps
Storage β Default 8GB EBS root volume.
π§ Linux Basics
Once inside the instance, I practiced essential Linux commands:
mkdir, ls, touch, rm β File/folder operations
cd and cd .. β Navigation
chmod β Manage permissions (read = 4, write = 2, execute = 1)
history β Review past commands
Example:
chmod 777 /var/www/html
This command gives full access to all users (not secure for production but useful for learning).
π Hosting a Web Application
To serve a simple web application:
Install Apache
yum install httpd
Start Apache
service httpd start
Check status
service httpd status
Then I placed my HTML files into /var/www/html and accessed them via the public IP of my EC2 instance.
For file transfer, I used WinSCP to copy files from my Windows machine to the server.
β Key Takeaways
Keep your key pairs safe β without them, you lose server access.
Use Elastic IPs to keep a permanent public IP (since default ones reset on reboot).
In production, always think of scaling and monitoring β Load Balancers, Auto Scaling, and CloudWatch.
π‘ Final Thoughts
Day 1 gave me a strong foundation in EC2, Linux, and deploying a basic web app in the cloud. Iβm excited to continue learning and will be documenting Day 2 & Day 3 as well. π
π If youβre also learning AWS, feel free to share your journey in the comments!
Top comments (0)