CDK不支持跨地域引用:
Error: Stack "Sandbox/us-east-2/1" cannot consume a cross reference from stack "Sandbox". Cross stack references are only supported for stacks deployed to the same environment or between nested stacks and their parent stack.然而,一些资源(例如:数据库)在使用中本质上是全局的。如何使用CDK管理全局资源及其跨地域依赖关系?
发布于 2021-10-29 07:07:56
在普通的CloudFormation (CFN)中不可能进行“全局”引用。CFN是一个区域服务,您不能引用部署在另一个区域的堆栈中的一个堆栈的导出输出。
有两种解决方案:
https://stackoverflow.com/questions/69762707
复制相似问题