Skip to content

vercel/aws-aurora-postgresql-demo

Repository files navigation

AWS Aurora PostgreSQL Movies Demo

This demo uses AWS Aurora PostgreSQL with Next.js to fetch movies from the database. It is able to securely connect to Aurora PostgreSQL without using hardcoded access tokens through Vercel's OIDC Federation and RDS IAM authentication.

This is an alt text.

Demo:View Demo

Getting Started: Click the "Deploy" button to clone this repo, create a new Vercel project, setup the AWS integration, and provision a new Aurora PostgreSQL database:

Deploy with Vercel

Once the process is complete, you can clone the newly created GitHub repository and start making changes locally.

Requirements

Local Setup

  1. Pull vercel environment variables locally
vercel env pull
  1. Install dependencies:
pnpm install
  1. Run migrations to create tables:
pnpm run db:migrate
  1. Seed the database with movie data:
pnpm run db:seed
  1. Start the development server:
pnpm run dev
  1. View development server: http://localhost:3000

Load Testing

Requirements

  1. Get access to the Vercel Labs team, ask for request via Lumos if needed
  2. Install all dependencies with pnpm install
  3. Run K6 locally with brew install k6
  4. Run vercel link and connect to project aws-aurora-postgresql-demo
  5. Fetch environment variables with vercel env pull

Next

  1. Start the development server with
pnpm run dev
  1. Once the development server is up
pnpm load-test

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •