How yashwanthkothakota9/myportfolio-aws works
Project Type & Purpose
• This repository supports a cloud resume project deployed on AWS. The README indicates that it leverages AWS services (Route 53, CloudFront, S3, API Gateway, Lambda, DynamoDB) to deliver a resume site, coupled with infrastructure as code (Terraform) and CI/CD pipelines (GitHub Actions).
• It’s a full-stack application with a Next.js-based frontend and a Python-based backend.
File Structure Analysis
• Top-Level Directories:
• .github: Contains separate workflows for frontend, backend, and infrastructure CI/CD tasks.
• backend: Houses the Python application (app.py), requirements, and tests. This demonstrates clear separation of backend logic.
• frontend: Contains a Next.js project (pages/app layout, components, Tailwind CSS, Cypress configuration, etc.), marking the client-side part.
• Root-level Terraform files (.terraform.lock.hcl, main.tf, providers.tf) indicate that the AWS resources are provisioned via Infrastructure as Code.
• The separation of concerns is clear—with one part managing the UI and client experiences, another handling server-side logic, and a third for infrastructure provisioning.
README Insights
• Listed tools, including AWS services for hosting and API management, and testing, give insight on how components interact, for example:
• Frontend (built with Next.js and Tailwind CSS) connects to backend APIs.
• The backend (Python, tested with Pytest) likely serves API endpoints for the frontend.
• AWS services (API Gateway, Lambda, DynamoDB) are used to implement scalable serverless endpoints, while S3 and CloudFront serve static assets.
• CI/CD pipelines configured via GitHub Actions trigger deployments and infrastructure provisioning using Terraform.
a. Main Components:
• Frontend Component:
• Next.js application
• Tailwind CSS for styling
• Cypress for UI testing
• Deployment behind CloudFront (managed by AWS)
• Backend Component:
• Python application (app.py)
• API endpoints, tests via Pytest
• Possibly serverless endpoints deployed via API Gateway and Lambda
• Infrastructure Management:
• Terraform scripts managing AWS resource provisioning (Route 53, S3, CloudFront, API Gateway, Lambda, DynamoDB)
• CI/CD Pipeline:
• GitHub Actions workflows for frontend, backend, and infrastructure
b. Relationships & Data flows:
• End-user requests hit DNS (Route 53) and arrive at CloudFront, which serves static assets from S3 (for the frontend) and routes API calls through API Gateway to Lambda or the backend service.
• The frontend (Next.js) communicates with backend APIs.
• CI/CD pipelines push code changes, which trigger builds, tests (via Cypress and Pytest), and then deploy with Terraform to update AWS infrastructure.
c. Architectural Patterns & Design Principles:
• Separation of concerns: distinct directories for frontend, backend, and infrastructure.
• CI/CD-driven automated deployment ensuring continuous progress across components.
• Use of Infrastructure as Code (Terraform) to standardize AWS provisioning.
• Use of serverless patterns (Lambda, API Gateway) to build scalable endpoints.
d. Technologies and Frameworks:
• Next.js, Tailwind CSS, Cypress on the frontend.
• Python and Pytest on the backend.
• AWS services (Route 53, CloudFront, S3, API Gateway, Lambda, DynamoDB).
• Terraform for infrastructure.
• GitHub Actions for CI/CD.
Instructing the Principal Software Engineer
• Frontend (Next.js, static assets from S3 via CloudFront)
• Backend (Python API service with tests)
• AWS services such as Route 53, CloudFront, S3, API Gateway, Lambda, DynamoDB.
• CI/CD pipelines (GitHub Actions workflows)
• Infrastructure as Code tool (Terraform)
• How user requests traverse from the internet to various AWS components.
• Data flow and dependency between the frontend and backend.
• Deployment flows from GitHub Actions to Terraform and ultimately AWS.
• Application code (frontend and backend),
• Infrastructure components,
• External services (AWS components),
• CI/CD pipelines.