Vercel Setup Guide
Deploy email infrastructure with Vercel OIDC federation.
Deploy email infrastructure with Vercel OIDC federation. Zero stored credentials, automatic rotation, and seamless integration with your Vercel projects.
When you deploy with the Vercel provider, Wraps sets up OpenID Connect (OIDC) federation between Vercel and your AWS account. This means your Vercel functions can securely access AWS SES without any stored secrets.
No API keys or secrets to manage, rotate, or leak
Temporary credentials expire after 15 minutes
Only your specific Vercel project can assume the IAM role
Remove access instantly by deleting the IAM role or OIDC provider
npm install -g @wraps.dev/cli)Run the init command with the Vercel provider flag. The CLI will guide you through the setup interactively.
npx @wraps.dev/cli email init -p vercelThe CLI will:
Vercel team and project slugs
Your team slug is visible in your Vercel dashboard URL (e.g., vercel.com/my-team). The project name is the name shown in your Vercel project settings.
After deployment, add the following environment variables to your Vercel project. The CLI will display these values after a successful deploy.
WRAPS_AWS_ROLE_ARN=arn:aws:iam::123456789012:role/wraps-email-roleWRAPS_AWS_REGION=us-east-1In the Vercel dashboard, you can scope environment variables to specific environments for more granular control:
| Environment | Use Case |
|---|---|
| Production | Live email sending with verified domain |
| Preview | Test sending to verified addresses only (SES sandbox) |
| Development | Local development with personal AWS credentials |
Add the following DNS records to verify your domain and enable email authentication.
# Add these 3 CNAME records to your DNS:abc123._domainkey.yourdomain.com → abc123.dkim.amazonses.comdef456._domainkey.yourdomain.com → def456.dkim.amazonses.comghi789._domainkey.yourdomain.com → ghi789.dkim.amazonses.com# Add this TXT record:Name: yourdomain.comType: TXTValue: v=spf1 include:amazonses.com ~all# Add this TXT record:Name: _dmarc.yourdomain.comType: TXTValue: v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.comnpx @wraps.dev/cli email domains verify -d yourdomain.comDNS propagation takes up to 48 hours
DKIM verification typically completes within a few hours, but can take up to 48 hours for DNS to fully propagate. Use dig CNAME token._domainkey.yourdomain.com to check progress.
Vercel OIDC federation creates a secure trust chain between your Vercel functions and your AWS account, eliminating the need for long-lived credentials.
Why this is better
No long-lived secrets means nothing to leak, rotate, or manage. Credentials rotate automatically every 15 minutes, and every access is logged in AWS CloudTrail for a full audit trail.
wraps email status to confirm the deployment regiondig CNAME token._domainkey.yourdomain.com to check DNS records directlySet up DKIM, SPF, and DMARC for better deliverability and sender reputation.
Domain VerificationMove out of the SES sandbox to send emails to any address.
Production Access