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.
Demo: TK
Getting Started:
Click the "Deploy" button to clone this repo, create a new Vercel project, setup the AWS integration, and provision a new DSQL database:
Once the process is complete, you can clone the newly created GitHub repository and start making changes locally.
- Pull vercel environment variables locally
vercel env pull- Install dependencies:
npm install- Run migrations to create tables:
npm run db:migrate- Seed the database with movie data:
npm run db:seed- Start the development server:
npm run dev