As part of my DevOps Engineering training at Abuja Data School, I worked on deploying a PHP File Manager application on AWS.
The goal was to move beyond simply running an application locally and understand how different AWS services can work together to support a real-world application.
In this project, I used Amazon EC2 to host the application, Amazon RDS for database management, Amazon S3 for image storage, and IAM roles to manage permissions securely.
Here's how I approached the project.
Project Architecture
The application uses a three-tier approach involving the application server, database, and object storage.
Architecture components
1) Amazon EC2: Hosts the PHP application.
2) Docker: Containerizes the application.
3) Amazon RDS: Stores image metadata, including titles, filenames, and file sizes.
4) Amazon S3: Stores the actual uploaded image files.
5) IAM Role: Grants the EC2-hosted application permission to access S3 without hardcoding AWS access keys.
6) AWS SDK for PHP: Enables the…