MENU

Fun & Interesting

Building a Serverless URL Shortener with AWS Lambda, API Gateway & DynamoDB 🚀

tech with bube 129 lượt xem 1 month ago
Video Not Working? Fix It Now

In this video, I walk you through building a serverless URL shortener using AWS Lambda, API Gateway, DynamoDB, and S3 for hosting. This project is fully automated with Terraform, making deployment seamless!

🔹 What you'll learn:
✅ How to set up AWS Lambda for serverless computing
✅ Using API Gateway to expose your endpoints
✅ Storing data in DynamoDB (Key-Value NoSQL)
✅ Hosting a frontend with Amazon S3 & CloudFront
✅ Deploying everything automatically using Terraform
✅ Troubleshooting common AWS Lambda & DynamoDB errors

📌 Common Errors & Fixes:
1️⃣ ResourceNotFoundException (DynamoDB error): Ensure your table name matches in both DynamoDB and Lambda code.
2️⃣ AccessDeniedException: Update IAM role permissions to allow Lambda access to DynamoDB.
3️⃣ CORS Issues: Configure API Gateway to allow cross-origin requests.

🔗 Source Code & Resources:
📂 GitHub Repo: https://github.com/blossom2016/url_shortner
📖 AWS Docs: https://docs.aws.amazon.com/

Comment