Menu

Steps I took in Deploying a PHP File Manager on AWS with Docker, Amazon S3, RDS and IAM Roles
📰

Steps I took in Deploying a PHP File Manager on AWS with Docker, Amazon S3, RDS and IAM Roles

DEV Community: php·Edith Ogechi Odo·5 days ago
#Ddf8IrSZ
#devto#dev#devops#docker#amazons3
Reading 0:00
15s threshold

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…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.