惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
罗磊的独立博客
量子位
Jina AI
Jina AI
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
美团技术团队
雷峰网
雷峰网
爱范儿
爱范儿
S
SegmentFault 最新的问题
小众软件
小众软件
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Recent Announcements

Amazon EC2 X8i instances are now available in Europe (Paris) Amazon CloudWatch pipelines now supports drop and conditional processing AWS Deadline Cloud supports monitor creation in multiple regions Amazon CloudWatch pipelines introduces new compliance and governance capabilities Second-generation Amazon FSx for NetApp ONTAP is now available in four additional AWS commercial and AWS GovCloud (US) Regions AWS Billing and Cost Management Dashboards Now Supports Scheduled Email Delivery AWS RTB Fabric supports health checks for real-time bidding workloads AWS Backup extends Amazon FSx support to 5 additional AWS Regions and expands cross-Region and cross-account copy to 14 AWS Regions Amazon RDS now supports the latest CU and GDR updates for Microsoft SQL Server Amazon Timestream for InfluxDB Now Supports Customer-Defined Maintenance Windows Amazon Bedrock now supports cost allocation by IAM user and role Amazon OpenSearch Service supports Managed Prometheus and agent tracing Amazon S3 Lifecycle pauses actions on objects that are unable to replicate Amazon RDS Blue/Green Deployments now supports Amazon RDS Proxy AWS Marketplace announces the Discovery API for programmatic access to catalog data AWS Agent Registry for centralized agent discovery and governance is now available in Preview Amazon OpenSearch Serverless now supports Zstandard (zstd) codec for index compression AWS Private CA now supports customer managed permissions for cross-account sharing Amazon EC2 Capacity Manager now supports tag-based dimensions Amazon Route 53 Resolver endpoints now support DNS delegation for private hosted zones in AWS GovCloud (US) Regions SageMaker HyperPod now supports gang scheduling for distributed training workloads Amazon IVS 实时直播功能现已支持冗余摄取 Amazon EKS 托管节点组现在支持 EC2 Auto Scaling 暖池 Amazon Bedrock AgentCore 浏览器新增操作系统级交互功能 Amazon WorkSpaces Advisor now available for AI-powered troubleshooting Amazon OpenSearch Service now supports Graviton4 based i8ge instances Oracle Database@AWS is now available in twelve AWS Regions AWS Lambda expands response streaming support to all commercial AWS Regions AWS Cost Explorer launches Natural Language Query capabilities powered by Amazon Q Amazon Lightsail 现已在亚太地区(马来西亚)区域推出
AWS SAM 现在支持 Amazon API Gateway 的 WebSocket API
aws@amazon.c · 2026-05-06 · via Recent Announcements

AWS Serverless Application Model(AWS SAM)现在支持 Amazon API Gateway 的 WebSocket API,使您能够在 SAM 模板中通过极少的配置定义完整的 WebSocket API。

AWS SAM 是一组开源工具,可让您轻松构建和管理无服务器应用程序。WebSocket API 对于聊天、实时控制面板、AI/LLM 流和 IoT 等实时应用程序至关重要。但是,SAM 此前并不支持 WebSocket API,因此需要手动在 AWS CloudFormation 中配置所有底层资源。这使得调试常见问题(例如 Lambda 函数缺少 IAM 权限)很困难。现在,SAM 会自动处理所有这些问题,根据您的模板生成所需的资源和权限。该新资源提供的功能与 API Gateway WebSocket API 相同,包括 IAM 和 Lambda 授权、自定义域、RouteSettings、模型和 StageVariables。全局支持让您能够在多个 WebSocket API 之间共享相同的配置。

要开始使用,请将 AWS::Serverless::WebSocketApi 资源类型添加到您的 SAM 模板中。通过为 $connect、$disconnect 和 $default 路由指定 Lambda 函数处理程序以及应用程序所需的任何自定义路由,定义您的路由。SAM 会自动连接每个路由的集成和权限。您还可以直接在资源定义中配置授权、阶段设置和自定义域。

要了解更多信息,请参阅 SAM 开发人员指南