Home › Browse

Infrastructure-as-code changes: how to do it with AI

Last checked 2026-10-15

AdvancedBot with human review 🛠️ IT ops & DevOps

Agent edits Terraform/Kubernetes files and opens a PR.

1. Bot automation level

Bot with human review Agents act on real systems; review plans, approvals and results before trusting them.

2. Before you hand it to the bot

3. Copy-paste prompts

Main prompt
Add a staging environment to our Terraform and open a PR.
Beginner-friendly
Add a staging environment to our Terraform and open a PR.

I'm new to this: explain each step in plain words and ask me for anything you need before starting.
Check-your-work
Add a staging environment to our Terraform and open a PR.

When you finish, list any assumptions you made, anything you're unsure about, and what I should double-check before using the result.

Free tiers that can handle this (verified): GitHub Copilot, ChatGPT (incl. Work & Codex). Others: check plan.

4. Step-by-step

  1. Pick a bot/platform from the list below and confirm your plan includes the needed agent features.
  2. Connect the required tools (repo, apps, MCP servers or connectors) in a test/sandbox first.
  3. Paste the agent instructions below; include success criteria and where to stop for approval.
  4. Run once on a small sample and watch each step/log.
  5. Review the plan, actions and output; fix instructions and re-run.
  6. Add approval steps, error handling and notifications before running on real data.
  7. Verify the final result against your success criteria; then schedule or enable it.

5. Which bots and plans can do it

ToolWhat's different herePlan limitsSource
Cursor—Pricing page unverified; cloud agents require a connected source-control repo.cursor.com/docs/agent/overview
GitHub Copilot—Free: 2,000 completions + 50 chats; cloud agent listed on paid plans.docs.github.com/en/copilot/concepts/agents/cloud-agent/about-cloud-agent
Claude (incl. Claude Code)—Claude Code and Research need Pro or higher; computer use is Pro/Max only (research preview).code.claude.com/docs/en/desktop
ChatGPT (incl. Work & Codex)—Free tier has limited deep research, Codex and Work; scheduled tasks need Go or higher (per chatgpt.com/pricing).help.openai.com/en/articles/20001275-chatgpt-work-and-codex

Free or paid?

6. Risks and what to double-check

Professions that use this

DevOps / SRE engineer

Related tasks

Open in the interactive app