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:
- One-click support for creating a new AWS account, provisioning new AWS databases and linking them to your Vercel projects.
- Improved developer experience with simplified region selection, secure credential handling, and unified monitoring of AWS database resources from Vercel.
- Automatic environment variable for connection strings and credentials, securely stored within your Vercel project.
- Free starter plan for new AWS customers, including $100 in credits, with deep links to manage or upgrade plans in the AWS console.
- And coming soon: Provision databases into your existing AWS account, attach them to your projects, and access AWS databases directly inside v0.
Setup a database client
Getting started
- Navigate to the Vercel Marketplace and select AWS
- Choose Create new account to provision a database
- Select your database type, region, and plan (including a free starter plan with $100 in credits for new AWS customers) and hit create
- 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);