Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Vibe-Coded Infrastructure: How to Ship Fast Without Torching Production

Description and use

Implementing a structured workflow where AI drafts code and humans review plans and scripts enables rapid infrastructure deployment without accidental destruction.

Problem

Fast infrastructure changes often lead to accidental destructive actions in production.

Outcome

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.

Workflow

  • 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.

Evidence

The AI writes code. It does not carry the consequences. You do.

Source

Vibe coding is great at drafts and terrible at consequences

Source

  • Record date: 2026-09-08T01:59:29.885Z