Skip to content

[WIP] Epic: AWS Serverless Migration#188

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-187
Closed

[WIP] Epic: AWS Serverless Migration#188
Copilot wants to merge 1 commit intomainfrom
copilot/fix-187

Conversation

Copy link
Contributor

Copilot AI commented Aug 22, 2025

AWS Serverless Migration Epic - Phase 1: Project & Infrastructure Setup

This PR implements Phase 1 of the AWS Serverless Migration Epic, focusing on the foundational infrastructure setup.

Progress Checklist:

  • Phase 1: Project & Infrastructure Setup

    • Initialize AWS SAM project in a new serverless-backend directory
    • Define DynamoDB tables for all data models (Users, Urls, Admins, etc.) in template.yaml
  • Phase 2: Authentication

    • Define Cognito User Pools for users and admins in template.yaml
    • Refactor all authentication routes (login, signup, password-reset) into Lambda functions using Cognito
  • Phase 3: Core Business Logic

    • Refactor URL management endpoints into Lambda functions
    • Refactor admin and feedback management endpoints into Lambda functions
    • Refactor custom domain logic into a Lambda function
  • Phase 4: Background Jobs & Services

    • Migrate node-cron job to a Lambda triggered by an EventBridge schedule
    • Replace nodemailer with Amazon SES for all email sending
  • Phase 5: Deployment & Verification

    • Deploy the complete serverless stack using sam deploy
    • Conduct end-to-end testing of all API endpoints
    • Update frontend to point to the new API Gateway endpoint
    • Decommission the old EC2-based backend

Data Models Analysis:

Analyzed existing MongoDB models that need DynamoDB equivalents:

  • Users: email, password, name, isEmailVerified, customDomain, timestamps
  • Admins: email, password, name, isEmailVerified, timestamps
  • URLs: userId, shortUrl, originalUrl, category, visitCount, customBackHalf, timestamps
  • CustomDomains: url, dnsVerificationCode, isVerified, user
  • Feedback: email, name, message, rating, timestamps

Current Status:

  • ✅ Repository exploration and architecture analysis complete
  • ✅ AWS SAM CLI confirmed available
  • 🔄 Ready to begin Phase 1 implementation

Fixes #187.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Contributor Author

Copilot AI commented Aug 22, 2025

@DhananjayThomble 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@netlify
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for dturl canceled.

Name Link
🔨 Latest commit 7ead52f
🔍 Latest deploy log https://app.netlify.com/projects/dturl/deploys/68a89d1db32b5800076d5b7c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants