← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1903.c.4.c.3

跨栈迁移需要编排

理解等级:高级

脚本式状态迁移可把旧新资源身份映射写成文件,更新状态后应用代码,还可支持跨状态文件移动。代价是部署流程必须知道何时运行迁移,并额外保障版本适应性与幂等性。工具能力不自动解决迁移顺序与重复执行安全,仍应经相同流水线验证。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 变更既有基础设施 · 查看原书依据

      Tfmigrate is an example of a tool that supports scripting changes to state files. You can create a file that specifies the old and new identifiers in the infrastructure code, much like the moved block in Terraform in OpenTofu. You then run the tfmigrate tool,

    参考来源

    - 位置:《Infrastructure As Code》第20章《变更既有基础设施》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch20.html) - 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“脚本式状态迁移可把旧新资源身份映射写成文件,更新状态后应用代码,还可支持跨状态文件移动”这一核心结论;正文的用途与边界据同小节后续论述整理。 - 原始内容:Tfmigrate is an example of a tool that supports scripting changes to state files. You can create a file that specifies the old and new identifiers in the infrastructure code, much like the moved block in Terraform in OpenTofu. You then run the tfmigrate tool,