知识卡片
多环境同栈放大风险
多环境栈把开发、测试、生产等环境放进同一次栈部署。部署工具可能修改整个实例,所以本想只改测试环境,编码错误、意外依赖或工具问题也会伤及生产。环境隔离需要独立部署身份与状态,不能只靠同一代码文件中的不同资源名称表达。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 设计可部署的基础设施栈 · 查看原书依据
The Multi-Environment Stack is an antipattern that defines and manages the infrastructure for multiple environments in a single-stack deployment, as in Figure 7-7. For example, if there are three environments for development, testing, and production, a single infrastructure stack project includes the code for all three environments, and a single instance is deployed from this
参考来源
- 位置:《Infrastructure As Code》第7章《设计可部署的基础设施栈》(来源项目 book-sources,源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch07.html)
- 结论依据:原文对该概念的定义、应用条件与作用机制直接支持上述解释。
- 原始内容:The Multi-Environment Stack is an antipattern that defines and manages the infrastructure for multiple environments in a single-stack deployment, as in Figure 7-7. For example, if there are three environments for development, testing, and production, a single infrastructure stack project includes the code for all three environments, and a single instance is deployed from this