在 CloudFormation 中 nested stacks和 modules通过创建通用组件来鼓励可重用性。
从 AWS 文档来看,没有说明何时使用什么。有什么建议吗?
最佳答案
Here是一个很好的实验,得出以下结论:
CloudFormation Modules are a good evolution of the nested stacks concept that arguably should have arrived a few years ago. And unfortunately, in their current state, they aren’t suitable for use in an enterprise—or any—environment.
所以我认为最好坚持使用嵌套堆栈,除非您有使用模块的特定要求。
关于amazon-web-services - AWS CloudFormation NestedStack 与模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69809675/