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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
L
LangChain Blog
Y
Y Combinator Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
V
Visual Studio Blog
小众软件
小众软件
月光博客
月光博客
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
美团技术团队
量子位

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 CLI 新增对 AWS CloudFormation 语言扩展的支持,助...
Amazon Web Services · 2026-05-19 · via Recent Announcements

AWS SAM CLI 现在支持 AWS CloudFormation 语言扩展,使您能够减少基础设施即代码(IaC)模板中的重复内容,同时保留完整的本地开发工作流程。借助这一支持,您仅需定义一次资源,即可在本地进行迭代,而无需等待云部署,这将加速无服务器开发。

开发人员经常需要根据单个模板定义来定义多个相似的资源,例如 Lambda 函数、DynamoDB 表或 SNS 主题。但是,以前使用 SAM CLI 构建、测试和部署无服务器应用程序的开发人员,无法处理使用 CloudFormation 语言扩展的模板。这使得开发人员不得不二选一:要么减少模板的重复内容,要么在本地开发中使用 SAM CLI。现在,SAM CLI 在内存中处理语言扩展以进行本地操作,同时保留原始模板以进行 CloudFormation 部署。您可以定义一次资源,然后在本地使用所有 SAM CLI 命令对这些资源进行测试,从而在部署前发现语法错误或依赖项缺失等问题。这可以缩短迭代周期,并减少在云中调试失败的部署所花费的时间。

要开始使用,请下载或更新 SAM CLI 至最新版本。将 AWS::LanguageExtensions 转换添加到您的 SAM 模板中,并使用 Fn::ForEach 根据单个定义生成多个资源。SAM CLI 命令(包括 sam build、sam local invoke、sam sync、sam local start-api 和 sam validate)会自动展开循环,并处理生成的每个资源。您可以按名称调用扩展函数,例如 sam local invoke AlphaFunction。SAM CLI 还支持 Fn::Length、Fn::ToJsonString、Fn::FindInMap with DefaultValue 以及条件 DeletionPolicy 和 UpdateReplacePolicy 属性。

要了解更多信息,请参阅 SAM CLI 开发人员指南发布博客文章