Newshot

Vercel Connect 新增托管 AWS 连接器

AI summary

Vercel Connect 现已推出托管 AWS 连接器。Vercel 上的应用和代理可使用短期凭证调用 Amazon Bedrock、S3、DynamoDB 和 Aurora 等 AWS 服务,无需存储 AWS 访问密钥;运行时通过将 OIDC 身份换取临时 AWS STS 凭证,无需轮换密钥,凭证按 IAM 角色限定范围,每个连接器最多支持 100 个角色。连接器还可接收事件:将 SNS 主题加入允许列表后,Vercel Connect 会与 SNS 确认订阅一次,并在转发每条消息前验证签名。

Translation(model translation, not the source's own text)
题图
题图

Vercel Connect 现已提供托管 AWS 连接器。Vercel 上的应用和 agent 可以使用短期凭证调用 Amazon Bedrock、S3、DynamoDB 和 Aurora 等 AWS 服务,而无需存储 AWS 访问密钥。

在运行时,应用和 agent 用其 OIDC 身份换取临时的 AWS STS 凭证,无需轮换密钥。凭证的作用域限定为 IAM 角色,每个连接器最多支持 100 个角色,因此你可以按应用或 agent 分别设置权限。

AWS 连接器还可以接收事件。将 SNS 主题添加到连接器的允许列表中,Vercel Connect 会先与 SNS 确认一次订阅,然后在每条消息转发到你的项目之前验证其签名。

复制链接到标题开始使用

从仪表盘或 Vercel CLI 创建 AWS 连接器,并将其附加到你的项目:


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

将连接器的凭证提供程序传递给任意 AWS 客户端。此示例使用 Amazon Bedrock 搭配 Vercel AI SDK。


        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'),});
      

在运行时从连接器获取短期 AWS 凭证

阅读 Vercel Connect 文档,设置你的第一个 AWS 连接器。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗