How pranav-8660/aws-ec2-instances-manager works
Main Components
• Frontend:
• Located in the “frontend” directory.
• Contains files like App.js and EC2Manager.jsx, which indicate the React-based User Interface.
• Backend:
• Located in the “backend” directory.
• “main.py” serves as the main module which, based on the README instructions, operates using FastAPI and Uvicorn.
• Infrastructure (Terraform):
• Inside the “backend/infrastructure” directory.
• “main.tf” configures AWS EC2 resources.
• External Services:
• AWS is a key external dependency, used both for EC2 instance management (via Terraform in the backend) and likely for the overall operations.
Relationships and Data Flows
• User Interface (Frontend) interacts with the Backend via API calls.
• Backend handles business logic to manage EC2 instances.
• Terraform scripts (main.tf) provision and manage the AWS EC2 instances, likely triggered or configured via the backend.
• That proper AWS credentials must be configured for backend operations.
Architectural Patterns and Principles
• Separation of Concerns: Clear separation into frontend (React-based UI) and backend (FastAPI-based API & business logic).
• Infrastructure as Code: Terraform scripts for AWS resource management.
Technologies and Frameworks
• Frontend: React (React’s components like App.js and EC2Manager.jsx); Node.js/npm for dependency management and development.
• Backend: Python with FastAPI, powered by Uvicorn.
• Infrastructure: Terraform for provisioning AWS EC2 instances.
• External: AWS (EC2 instances) and AWS CLI for credentials management.
Final Touches
• Every component is clearly annotated with names and functions.