Accessing RDS from phpadmin Container

hamza_nasir_06a03aac148a4

Hamza Nasir

Posted on August 30, 2024

Accessing RDS from phpadmin Container

I Built an AWS LAB to access RDS from phpadmin container.

Here's a breakdown of my recent AWS project:

š—©š—£š—– š—¦š—²š˜š˜‚š—½: I configured a VPC with two Availability Zones to enhance fault tolerance. Within each zone, I created both public and private subnets, even though initially only one zone was required. This decision was made with future scalability in mind.
š—„š——š—¦ š——š—²š—½š—¹š—¼š˜†š—ŗš—²š—»š˜:MySQL RDS instance was created and placed in the private subnet of Zone 1 to isolate the database from public internet access.
š—˜š—–š—¦ š—¦š—²š—暝˜ƒš—¶š—°š—² š—–š—暝—²š—®š˜š—¶š—¼š—»: Given the free tier benefits, I opted for an EC2 launch type for my ECS service and attaching with the public subnet of same AZ where the database is placed.
š—£š—›š—£š—”š—±š—ŗš—¶š—» š—–š—¼š—»š˜š—®š—¶š—»š—²š—æ š—§š—®š˜€š—ø: I defined a task for a PHPAdmin container, specifying parameters such as CPU, memory, port mappings, and the Docker image. This task was then run on the ECS machines.
š—¦š—²š—°š˜‚š—暝—¶š˜š˜† š—šš—暝—¼š˜‚š—½ š—–š—¼š—»š—³š—¶š—“š˜‚š—暝—®š˜š—¶š—¼š—»: I adjusted the VPC security group to permit traffic from the ECS to enable communication. ECS machine's security group was configured to accept incoming connections from my local machine.

š—¢š˜‚š˜š—°š—¼š—ŗš—²: Successful implementation of the above steps allowed me to access my RDS instance's dashboard through the PHPAdmin container

šŸ’– šŸ’Ŗ šŸ™… šŸš©
hamza_nasir_06a03aac148a4
Hamza Nasir

Posted on August 30, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Accessing RDS from phpadmin Container
database Accessing RDS from phpadmin Container

August 30, 2024