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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
J
Java Code Geeks
Jina AI
Jina AI
罗磊的独立博客
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园 - 叶小钗
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
B
Blog
V
Visual Studio Blog
雷峰网
雷峰网
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
奇客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 CloudFormation 和 CDK 引用跨账户和区域的堆栈输出
Amazon Web Services · 2026-05-15 · via Recent Announcements

发布于: 2026年5月14日

AWS CloudFormation 现在支持一项新的内置函数 Fn::GetStackOutput,使您能够在 CloudFormation 模板和 CDK 应用程序中直接引用跨 AWS 账户和区域的堆栈输出。这一新功能简化了 CloudFormation 和 CDK 中多账户及多区域工作负载的配置和管理,并消除了在 CDK 应用程序中重构跨堆栈依赖关系时出现的部署死锁。

在管理多账户 AWS 环境时,团队通常需要在账户边界之间共享基础设施值,例如 VPC ID 或数据库端点。此前,实现这一目标需要多个步骤,包括在模板之间复制值或协调团队之间的参数更新。现在,借助 Fn::GetStackOutput,您只需指定目标堆栈名称、输出键、用于跨账户访问的 IAM 角色 ARN,以及可选的区域。CloudFormation 会在模板处理期间自动代入指定角色、检索输出值并进行解析,从而减少手动协调工作,并降低配置漂移的风险。在 CDK 应用程序中,跨账户和跨区域引用现已自动使用此函数,无需再像以前那样依赖自定义资源和 SSM 参数。客户还可以直接调用 Fn.getStackOutput 在堆栈之间建立弱引用,从而简化堆栈重构。

要开始使用,请将 Fn::GetStackOutput 函数添加到您的 CloudFormation 模板中,并配置适当的 IAM 权限以进行跨账户访问。在 CDK 中,跨账户和跨区域引用会自动使用此函数。请访问 AWS CloudFormation 用户指南CDK 开发人员指南,了解更多信息。


此功能现已在支持 CloudFormation 的所有 AWS 区域推出。有关服务可用性的详细信息,请参阅 AWS 区域表