Infrastructure Drift Repair
This loop detects and repairs infrastructure drift by continuously comparing the current state with the desired state defined in Terraform configurations. It…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Infrastructure Drift Repair" loop.
Goal: Match infrastructure desired state
Max iterations: 10
Between iterations run: terraform plan
Exit when: Terraform plan clean
Start the Infrastructure Drift Repair loop. Continuously check for drift using 'terraform plan' and apply fixes until a clean plan is achieved or 10 iterations are completed. Ensure all actions are safe and do not modify critical resources without approval.
Self-pace this loop. After each iteration, run `terraform plan` and evaluate the output, and only continue if the exit condition is not met (Terraform plan clean). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.