π Project Objective :-
The main objective of this project is to deploy a Java application on an EC2 instance and integrate it with an AWS RDS MySQL database. The application interacts with the database (CRUD operations), while MySQL Workbench is used for remote database management and monitoring. This setup demonstrates a scalable, secure, and cloud-based architecture for hosting enterprise applications.
π Project Description:-
A Java application is deployed on an EC2 instance (Linux/Windows) to act as the application server.
The application connects to an RDS MySQL database for data storage and retrieval.
MySQL Workbench is used locally by developers/DBAs to manage, monitor, and query the RDS database securely.
AWS Security Groups are configured to allow communication between EC2 and RDS, and between MySQL Workbench and RDS.
This setup simulates a real-world cloud deployment where applications run on compute nodes (EC2) while leveraging managed database services (RDS).
π Architecture Flow :- Step-by-step flow:
1.User/Application Request β End-user interacts with the Java application hosted on EC2.
2.EC2 Instance (App Layer) β Java code executes logic and connects to the RDS MySQL endpoint.
3.RDS MySQL (DB Layer) β Handles queries (Insert, Select, Update, Delete) and sends responses back to EC2.
4.MySQL Workbench (from developer system) β Connects to RDS for schema design, monitoring, and query execution.
5.Data Flow β MySQL RDS β EC2 Java Code β MySQL Workbench.

π Benefits of This Setup:-
β Scalability β EC2 instances can be scaled up/down, and RDS supports Multi-AZ & Read Replicas for scaling databases.
β Separation of Concerns β Application (EC2) and Database (RDS) are independent, improving reliability and manageability.
β High Availability β RDS provides automatic backups, snapshots, and failover for business continuity.
β Security β Controlled access via Security Groups, IAM roles, and encryption.
β Ease of Management β MySQL Workbench allows developers to manage RDS without logging into AWS console.
β Real-world Cloud Simulation β Mirrors enterprise setups where apps and DBs are hosted separately.
β Cost Optimization β Pay-as-you-go model with options for reserved instances and database scaling.