知识卡片

普通读书笔记卡 · 1334.b.4

脚本固定实例参数

理解等级:中级

把每个环境的参数写进版本控制中的部署脚本,可避免手输错误,并使参数与栈代码同步演进。它适合环境集合固定的情形。每环境一脚本容易重复和分叉,单脚本分支又会逐渐复杂;秘密应另从安全来源读取,不能硬编码。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 配置基础设施栈实例 · 查看原书依据

      Scripts are a simple way to capture the values for each instance, avoiding the problems with the Manual Stack Parameters antipattern. You can be confident that values are used consistently for each environment. By checking the script into version control, you ensure that you are tracking any changes to the configuration values. Applicability A stack

    参考来源

    - 位置:《Infrastructure As Code》第8章《配置基础设施栈实例》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch08.html) - 结论依据:原文说明把每个环境的参数写进版本控制中的部署脚本,可避免手输错误,并使参数与栈代码同步演进;本卡据此解释其用途及适用边界。 - 原始内容:Scripts are a simple way to capture the values for each instance, avoiding the problems with the Manual Stack Parameters antipattern. You can be confident that values are used consistently for each environment. By checking the script into version control, you ensure that you are tracking any changes to the configuration values. Applicability A stack