Learn how to create a serverless URL shortener in AWS using Terraform. The project architecture consists of API Gateway, Lambda Function, DynamoDB, and DAX (DynamoDB Accelerator). The application allows users to input a URL and receive a redirect URL with a short code attached. The infrastructure is managed using Terraform, making it easier to provision and modify services. The URL shortening functionality is implemented through a Lambda function that saves the URL in DynamoDB and generates a short URL code. When a user calls the short URL, the application checks the cache for the corresponding record and redirects the user to the original URL.

16m read timeFrom levelup.gitconnected.com
Post cover image
Table of contents
Create a serverless URL shortener in AWS with TerraformThe ProjectLet’s startCreate our base infrastructureCreating a short URLRedirectingConclusion

Sort: