Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Demo Next.js app that fetches movies from Amazon DynamoDB, using Vercel OIDC Federation for secure access without hardcoded tokens.
Amazon DynamoDB Movies Demo is a boilerplate Next.js application that fetches movie records from an Amazon DynamoDB table and demonstrates secure cloud-database access using Vercel's OIDC Federation.
Amazon DynamoDB Movies Demo is a sample application built with Next.js that retrieves movies from a DynamoDB database. It runs on Vercel and connects to DynamoDB without hardcoded access tokens by using Vercel's OIDC Federation to mint short-lived AWS credentials. The project is maintained by Vercel and published on GitHub under the repository name aws-dynamodb-demo. It includes a seed script that populates the table with movie data, plus a live demo hosted at aws-dynamodb-demo.labs.vercel.dev.
vercel env pull, installing dependencies with pnpm, seeding the database via pnpm run db:seed, and launching the dev server on port 3000.install, db:seed, and dev.vercel env pull to fetch environment variables locally.pnpm install, seed the table with pnpm run db:seed, and start the app with pnpm run dev at http://localhost:3000.No. The app connects to DynamoDB using Vercel's OIDC Federation, which exchanges Vercel-issued identity tokens for temporary AWS credentials. This avoids storing access keys in the codebase or environment variables.
Use the Deploy with Vercel button on the readme. It clones the repository, sets up a Vercel project, configures the AWS integration through Vercel Marketplace, and provisions a DynamoDB table. After deployment, clone the resulting GitHub repo to work locally.
The project uses pnpm. The setup commands are pnpm install, pnpm run db:seed, and pnpm run dev.
A hosted version of the app is available at https://aws-dynamodb-demo.labs.vercel.dev.