AWS databases now available on the Vercel Marketplace - Vercel

Today we’re introducing native support for AWS databases including Amazon Aurora PostgreSQL, Amazon Aurora DSQL, and Amazon DynamoDB on the Vercel Marketplace.

This gives developers a direct path to provision and manage scalable, production-ready AWS databases from within the Vercel dashboard with no manual setup required, and:


Setup a database client

Getting started

  1. Navigate to the Vercel Marketplace and select AWS
  2. Choose Create new account to provision a database
  3. Select your database type, region, and plan (including a free starter plan with $100 in credits for new AWS customers) and hit create
  4. Connect it to your project. Vercel automatically handles credentials and configuration

You can also try a working example by deploying the Movie Fetching Database template to see the integration end-to-end.


import { Signer } from "@aws-sdk/rds-signer";
import { awsCredentialsProvider } from "@vercel/functions/oidc";
import { attachDatabasePool } from "@vercel/functions";
import { Pool } from "pg";

const signer = new Signer({
  hostname: process.env.PGHOST,
  port: Number(process.env.PGPORT),
  username: process.env.PGUSER,
  region: process.env.AWS_REGION,
  credentials: awsCredentialsProvider({
    roleArn: process.env.AWS_ROLE_ARN,
    clientConfig: { region: process.env.AWS_REGION },
  }),
});

export const pool = new Pool({
  host: process.env.PGHOST,
  user: process.env.PGUSER,
  database: process.env.PGDATABASE || "postgres",
  password: () => signer.getAuthToken(),
  port: Number(process.env.PGPORT),
  ssl: { rejectUnauthorized: false },
});

attachDatabasePool(pool);