Engineering notes — ExplainersVercel Connect AWS managed connector: how it actually works
How the Vercel Connect AWS managed connector works, how it maps OIDC to IAM roles, and how to call AWS services from Next.js without long‑lived access keys.
Vercel now has a managed AWS connector inside Vercel Connect. Apps and agents running on Vercel can call AWS services like Amazon Bedrock, S3, DynamoDB and Aurora using short‑lived credentials, without storing access keys as environment variables.
Under the hood, your code runs with an OIDC identity, Vercel Connect exchanges that identity for AWS STS credentials scoped to an IAM role, and your AWS SDK clients use those credentials via a provider the connector exposes.
What Vercel’s AWS managed connector actually is
Vercel describes the new connector like this:
"Apps and agents on Vercel can call AWS services like Amazon Bedrock, S3, DynamoDB, and Aurora with short-lived credentials, without storing an AWS access key."
The connector lives inside Vercel Connect. You create one connector, attach it to one or more projects, and configure up to 100 IAM roles on the AWS side for that connector.
A few points Vercel makes clear in the announcement:
- Your app or agent authenticates to Vercel with OIDC.
- At runtime, Vercel Connect exchanges that OIDC identity for AWS STS credentials.
- There are no AWS access keys to store or rotate in your project settings.
- Permissions are controlled by IAM roles; you can use different roles per app or agent.
Vercel also calls out inbound events:
"Add an SNS topic to a connector's allowlist, and Vercel Connect confirms the subscription with SNS once, then verifies the signature on each message before forwarding it to your project."
So the connector is both:
- an outbound bridge from your Vercel runtime to AWS APIs using short‑lived credentials, and
- an inbound validator for SNS topics you explicitly allow.
Vercel’s changelog is intentionally brief; the exact OIDC trust configuration, role wiring and SDK helpers live in the Vercel Connect documentation it links.
How OIDC → STS → IAM works in practice
Vercel gives a concise description of the runtime path:
"At runtime, apps and agents exchange their OIDC identity for temporary AWS STS credentials, with no keys to rotate. Credentials are scoped to IAM roles, with up to 100 roles per connector, so you can set permissions per app or agent."
Mechanically, there are three steps during a request:
Your code runs with an OIDC identity.
- The app or agent is already authenticated to Vercel.
- That identity is what Vercel Connect presents to AWS as the caller.
Vercel Connect calls AWS STS using that identity.
- Vercel Connect has a configured trust relationship with your AWS account.
- It maps the OIDC identity to one of the up to 100 IAM roles attached to the connector.
- It asks AWS STS for temporary credentials for that role.
Your AWS SDK client uses those STS credentials via a provider.
- Vercel exposes a "credentials provider" object for the connector.
- Any AWS client that accepts a credentials provider can use it.
Vercel says you should "pass the connector's credentials provider to any AWS client". The Bedrock example uses the Vercel AI SDK, but the idea is the same whether you’re talking to S3, DynamoDB, Aurora, or Bedrock.
I read this as: the connector replaces AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY with an opaque provider you hand to the SDK. You don’t see or manage the keys yourself.
Old pattern: long‑lived access keys in env vars
Before this connector, the common pattern on Vercel looked like this:
- Create an IAM user in AWS.
- Attach policies with S3, DynamoDB or Bedrock permissions.
- Generate an access key and secret.
- Store them as Vercel environment variables.
- Configure your AWS SDK using those variables.
That worked, but it had obvious issues:
- Rotation: you had to remember to rotate keys manually.
- Blast radius: many apps shared one key, so a compromise exposed everything that key could reach.
- Accidental leaks: access keys sometimes landed in crash logs, error messages or build artifacts.
The managed connector replaces that with:
- OIDC identities tied to apps and agents.
- IAM roles per app or agent, with least‑privilege policies.
- STS credentials with a short lifetime.
So instead of thinking "which access key does this app use", you think "which IAM role does this app assume via the connector".
Wiring the connector into a Next.js app
Vercel gives the high‑level steps:
- "Create an AWS connector from the dashboard or Vercel CLI and attach it to your project."
- "Pass the connector's credentials provider to any AWS client."
The exact dashboard screens, CLI subcommands and code are in the Vercel Connect docs and the embedded examples in Vercel’s announcement. I’ll keep this Next.js example schematic.
Assume you have:
- A Vercel project with Vercel Connect enabled.
- An AWS connector created and attached to that project.
- At least one IAM role configured in AWS and linked to the connector.
In a Next.js Route Handler or Server Action, you might do something like this conceptually:
// This is an illustrative sketch, not code from Vercel's docs.
// Names and imports are placeholders.
import { NextRequest } from "next/server";
import { S3Client } from "@aws-sdk/client-s3";
import { getAwsConnectorCredentials } from "vercel-connect/aws"; // <placeholder>
export async function GET(_req: NextRequest) {
// Obtain the credentials provider for your configured connector.
const credentials = await getAwsConnectorCredentials({
connectorId: "<connector-id>",
role: "<role-alias-or-id>",
});
const s3 = new S3Client({
region: "<aws-region>",
credentials, // Provided by Vercel Connect at runtime
});
// Use the client as usual; calls are signed with short-lived STS creds.
const result = await s3.listBuckets({});
return Response.json({ buckets: result.Buckets ?? [] });
}The important part isn’t the exact API surface, it’s the shape of the control:
- You don’t read
process.env.AWS_ACCESS_KEY_ID. - You do get a credentials provider object wired to your connector.
- You pass that to any AWS SDK client that accepts a credentials provider.
The same pattern should apply if you’re using the Vercel AI SDK to hit Amazon Bedrock, just with the Bedrock client type instead of S3. Vercel’s embedded example does exactly that: call Bedrock with the Vercel AI SDK and use the connector’s credentials provider.
If your team leans heavily on Next.js and Vercel infrastructure generally, this fits alongside the work you might already be doing with PrivateLink and Secure Compute, like in my Vercel Secure Compute + AWS PrivateLink walkthrough.
Calling S3, DynamoDB or Aurora without storing keys
The connector doesn’t care which AWS API you’re calling; the constraint is what the attached IAM role allows.
From a Next.js perspective, the steps for S3, DynamoDB or Aurora follow the same pattern:
Define an IAM role in AWS with the minimum required permissions:
- S3: bucket‑scoped permissions for the operations your app needs.
- DynamoDB: table‑level read/write actions.
- Aurora: permissions to reach your cluster via whatever mechanism you’re using.
Attach that IAM role to your Vercel Connect AWS connector as one of its roles.
Choose which role your app will assume when it asks the connector for credentials.
Instantiate the corresponding AWS SDK client in your Next.js server‑side code, passing the connector’s credentials provider.
Schematically, a DynamoDB client would look analogous to the S3 sketch above, with DynamoDBClient instead of S3Client. Aurora is similar if you’re using an AWS‑provided client that accepts AWS credentials, or you’re using auth flows that build on STS.
The key security property is that each app or agent on Vercel uses short‑lived STS credentials tied to its role. If one set of credentials somehow leaks at runtime, it has:
- a short lifetime, and
- only the permissions in that role’s policy.
That’s a clear improvement over a single long‑lived access key shared across multiple services.
If you’re used to thinking about data access and row‑level security in something like Supabase Postgres, the same idea applies here at the IAM level: scope each app tightly, and keep trust relationships explicit.
Amazon Bedrock with short‑lived credentials
Vercel calls out Amazon Bedrock by name and mentions that the example uses the Vercel AI SDK. That suggests this connector is meant to sit cleanly under the SDK’s provider abstraction.
Conceptually, the Bedrock flow looks like this:
- In your Next.js or server context, you configure the Vercel AI SDK to talk to Amazon Bedrock.
- Instead of hardcoding Bedrock credentials, you:
- obtain the connector’s credentials provider, and
- supply it in whatever hook or constructor the SDK expects for Bedrock.
- Each time your code sends a Bedrock request, the SDK signs the request using the short‑lived STS credentials behind that provider.
From a security and ops standpoint, this matters because:
- you don’t manage any Bedrock‑specific access keys on the Vercel side, and
- you can use a Bedrock‑specific IAM role that doesn’t let the app touch S3 or DynamoDB at all.
For teams building AI features in Next.js, that’s a clean separation: one role for models, others for storage.
If you’re already using Vercel’s AI‑focused tooling elsewhere (for example the workflow changes I covered in my Vercel Workflow SDK 5.8 migration write‑up), the connector keeps your Bedrock integration aligned with the rest of your Vercel setup.
Receiving SNS events through the connector
The managed connector also handles incoming SNS events. Vercel gives a short description of the mechanism:
- You add an SNS topic to the connector’s allowlist.
- Vercel Connect confirms the SNS subscription once.
- For each message, Vercel Connect verifies the SNS signature.
- Only then does it forward the message to your project.
The effect is that your Next.js app doesn’t need to implement the SNS subscription confirmation handshake or signature verification itself. You just expose an HTTP endpoint for the connector to forward validated messages to.
The exact configuration for the allowlist, confirmation and forwarding mapping lives in the Vercel Connect docs. In the announcement, Vercel scopes the guarantee: the connector will only handle topics you’ve explicitly allowed, and it verifies SNS’s own signatures first.
When I wouldn’t reach for the AWS connector yet
This connector is clearly designed for apps and agents that:
- already run on Vercel, and
- need to call AWS services like Bedrock, S3, DynamoDB or Aurora.
There are some cases where I’d pause:
- You run mostly outside Vercel. If only a small slice of your system is on Vercel, but most AWS calls come from elsewhere, centralizing credential management around this connector may not help much.
- You already have a strict secrets process. If your team has automated key rotation, scoped IAM users, and audited distribution, the operational gain is smaller, though you still avoid handling model or storage keys in app code.
- You need behavior not covered in the docs yet. If you depend on specific credential caching patterns, custom STS flows, or advanced SNS features, I’d read the full Vercel Connect documentation before committing.
I also wouldn’t assume this replaces network‑level controls like PrivateLink or VPC peering. It solves identity and credentials, not private routing. On projects that need both, I treat identity and network as separate design decisions, similar to how I approached networking in the Secure Compute + PrivateLink setup guide.
The managed AWS connector in Vercel Connect gives Next.js teams a clearer, safer way to call AWS services from Vercel: no long‑lived access keys, per‑app IAM roles, and STS credentials issued at runtime. If you’re currently piping AWS_ACCESS_KEY_ID into your Vercel environment, this is a strong candidate for your next refactor.
If you need someone to design this integration, map roles to your apps and wire it into a real Next.js codebase, that’s the kind of work I take on as a Next.js developer.
Sources
- Vercel Connect adds a managed AWS connector – Vercel changelog
- Vercel Connect documentation (linked from the changelog)