Vibe-Coded Infrastructure: How to Ship Fast Without Torching Production
说明与用途
采用结构化工作流程,AI 生成草稿,人工审核计划和脚本,可快速部署基础设施而不产生意外破坏。
问题
Fast infrastructure changes often lead to accidental destructive actions in production.
结果
Adopting a disciplined workflow that separates AI drafting from human approval, stages changes, and hardens scripts dramatically reduces accidental production damage while preserving rapid iteration.
工作流
- 1. Draft code with AI using a prompt library. 2. Generate a Terraform plan and convert it to JSON. 3. Paste the plan into the AI for plain‑English review. 4. AI flags destructive changes, ranks risks, and suggests mitigations. 5. Human approves the plan. 6. Run destructive scripts through an AI risk pass to identify unsafe commands. 7. Harden scripts with strict mode, traps, and back‑out paths. 8. Perform dry‑run checks (e.g., terraform plan, ansible --check). 9. Apply to a single node/namespace/non‑prod environment first. 10. Monitor, then widen scope if safe. 11. Keep a prompt library for reproducible, guarded prompts.
证据
The AI writes code. It does not carry the consequences. You do.
Vibe coding is great at drafts and terrible at consequences
- 记录日期: 2026-09-08T01:59:29.885Z