VercelDev & Eng

Content type: Hands-on

4 min read

Vercel Connect adds managed connector for AWS, eliminates fixed access keys

Article · Dev & Eng
Reading
4 min
Code
2
In short

Vercel Connect gained a connector for AWS that exchanges OIDC identity for temporary STS credentials, unlocking Bedrock, S3, DynamoDB, and Aurora without an access key stored in the project.

Vercel documented, in the product's official changelog, a managed connector for AWS within Vercel Connect. The proposal solves a known problem for anyone who hosts front-end and AI agents outside AWS but depends on its services: how to call Bedrock, S3, DynamoDB, or Aurora without copying an access key into an environment variable and hoping nobody leaks the .env.

With the connector, the key simply stops existing in the project. Instead of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY stored as a secret, the app or agent receives credentials that expire on their own.

How it works under the hood: OIDC becomes STS

The mechanism is the same one already used in modern CI pipelines to avoid long-lived secrets, now applied to the production runtime. Each deployment on Vercel carries its own OIDC identity; at call time, that identity is exchanged for temporary credentials issued by AWS STS (Security Token Service).

There's no key to rotate because there's no fixed key: the token expires and the next request generates a new one, transparently to whoever writes the code. Credentials are scoped to IAM roles, and a single connector supports up to 100 roles, a granularity designed for teams running multiple apps or multiple AI agents with different permissions within the same AWS account.

Expert views

What people are saying about it.

New command shifts to the application the decision of whether to wait for a replica, promising to end the stalled commits of traditional synchronous replication.

Roberto Dinizin an iMasters article · Read the article: PostgreSQL 19 brings WAIT FOR LSN as an alternative to synchronous replication

The This Week in Rails bulletin from November 27, 2026 brings a command to audit secrets without revealing them, the end of a per-attachment query in Action Text, and an Action Mailer that no longer needs to drag Active Job along at boot.

Bisneto Bragain an iMasters article · Read the article: Rails gets credentials:keys, batched Action Text, and Action Mailer without Active Job

In practice, this means an agent that only needs to read from a specific S3 bucket doesn't accidentally inherit write permission to DynamoDB from another product. The permission model stays on the AWS side (IAM), instead of being scattered across environment variables per project.

Example: Bedrock with the AI SDK

The changelog includes a direct example with the Vercel AI SDK and Amazon Bedrock, AWS's managed model service. The configuration swaps the API key for a credential provider:

ts
import { createAmazonBedrock } from '@ai-sdk/amazon-bedrock';
import { connectAwsCredentialsProvider } from '@vercel/connect/aws';

const bedrock = createAmazonBedrock({
  region: 'us-east-1',
  credentialProvider: connectAwsCredentialsProvider('aws/my-aws'),
});

For those who already use the AI SDK to orchestrate calls to models (OpenAI, Anthropic, Bedrock, switching providers based on cost or availability), the change is narrow: it swaps the authentication method, not the SDK's interface. It's a detail that matters precisely because it doesn't require rewriting the agent's logic, only the way it authenticates against AWS.

Events also go through the connector

Besides outbound calls, the connector can also receive events. Just add an SNS topic to the connector's allowlist: Vercel confirms the subscription with SNS once and, from then on, verifies the signature of each message before forwarding it to the project.

This covers a common case in architectures that mix a Vercel front-end with asynchronous processing on AWS: an S3 upload triggers an event, which becomes a notification via SNS, which arrives validated at the app without the developer needing to implement signature verification manually at every endpoint.

How to configure it

Creating the connector happens through the dashboard or the CLI. The two commands in the official example create the connector and attach it to a specific project and environment:

vercel connect create aws --name my-aws
vercel connect attach aws/my-aws --project my-app --environment production

The --environment production flag is relevant: the connector can be attached per environment, which allows using different IAM roles in preview and production without duplicating credential configuration in the code.

What this replaces, and where it still hurts

The connector solves the static secret problem, but it doesn't solve everything. Some points are left out of the announcement:

  • IAM configuration is still manual: someone still needs to design the roles and policies in the AWS account; the connector consumes those roles, it doesn't generate them.
  • Coupling to Vercel Connect: the credentialProvider is specific to the @vercel/connect/aws package, so migrating the project off Vercel requires swapping this authentication layer for another one (the standard AWS SDK, for example).
  • AWS only, for now: the changelog speaks specifically of an AWS connector; there's no indication of equivalent coverage for GCP or Azure in this announcement.

For those who have already solved this problem with their own solution (IAM Roles Anywhere, a secrets manager with automatic rotation, or even an internal proxy) the practical difference is smaller: Vercel Connect's gain is for those who run on Vercel and still store access keys in environment variables, a situation more common than ideal in projects that grow fast with AI agents calling one managed service after another.

It's worth less in small, low-traffic projects, where a single key with restricted permissions and occasional manual rotation is already a manageable risk. The gain from ephemeral credentials shows up when the number of apps, environments, and agents grows to the point where a leaked key becomes a real incident, not a theoretical exercise.

Translated from the Brazilian Portuguese original · Read the original

Read also