AWS Builder Center

My Journey into AWS and DevOps: Deploying a Containerized Application on AWS EC2

Introduction Cloud computing and DevOps are transforming how modern applications are developed, deployed, and maintained. As a Computer Engineering student interested in Cloud Computing and DevOps, I wanted to move beyond theoretical knowledge and gain practical experience with AWS infrastructure. In this article, I am sharing my learning experience while deploying a containerized application using AWS and Docker.

1. Understanding the Architecture

For my project, I explored how different technologies work together in a production-style deployment.
The technologies included:
  • AWS EC2: Hosting the application on a cloud server.
  • Docker: Containerizing the frontend and backend.
  • Nginx: Reverse proxy configuration.
  • Let's Encrypt: Configuring HTTPS certificates.
  • Linux: Server administration and troubleshooting.
  • GitHub: Source code management.

2. Containerizing the Application

I used Docker to package the frontend and backend into separate containers.
This helped me understand:
  • Docker images and containers.
  • Port mapping and networking.
  • Environment variables.
  • Container logs and troubleshooting.
  • Application deployment and restart procedures.
Containerization made the deployment process more manageable and consistent.

3. Deploying on AWS EC2

I configured an EC2 instance and deployed the Dockerized application.
During deployment, I learned about:
  • Linux server administration.
  • Security groups and network access.
  • Application ports.
  • Managing Docker containers.
  • Monitoring application logs.

4. Configuring HTTPS with Nginx

One important challenge I encountered was configuring HTTPS correctly.
I used Nginx as a reverse proxy to route frontend and backend requests. I also configured an SSL certificate using Let's Encrypt.
I encountered a mixed-content issue because the frontend was making HTTP requests while running over HTTPS.
After identifying the incorrect backend URL, updating the configuration, and rebuilding the frontend image, I resolved the issue.
This taught me an important lesson: production deployment requires careful attention to networking, environment variables, DNS, and HTTPS.

5. Key Learnings

Through this hands-on experience, I improved my understanding of:
  1. AWS EC2 infrastructure.
  1. Docker containerization.
  1. Linux server management.
  1. Nginx reverse proxy.
  1. HTTPS and SSL configuration.
  1. Application troubleshooting.
  1. Production deployment practices.

6. What's Next?

My next learning goals include:
  • Building automated CI/CD pipelines using Jenkins.
  • Exploring Amazon ECR.
  • Learning Kubernetes and container orchestration.
  • Implementing infrastructure as code using Terraform.
  • Improving cloud security and monitoring.

Conclusion

My experience has shown me that learning cloud technologies becomes much more effective when combined with practical implementation.
I am continuing my journey toward becoming a Cloud/DevOps Engineer and look forward to learning from the AWS community.
What was your first real-world AWS deployment experience? I would love to learn from your suggestions and experiences.
#AWS #CloudComputing #DevOps #Docker #EC2 #Linux #CloudEngineering
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article