Use Copilot to break a Terraform project into small steps
A writer used GitHub Copilot to learn Terraform on the job and finish infrastructure work by leaning on repo docs and strict tool limits.
- What they did
- Working in an infrastructure-as-code repository, they asked GitHub Copilot to help them through a Terraform project they had never used before. The repo already had a large docs tree, with hundreds of markdown files tied together from a main README, and they tightened the instructions so Copilot would follow the project’s rules. They also kept tool use on ask-first after Copilot attempted risky actions.
- How it went
- The workflow helped them turn a script into automation for deploying and configuring about 100 resources and 500 variables, along with key rotation, secrets, and environment teardown. They said the job would have been impossible to finish in two weeks without this setup. As the project got more complex, Copilot’s success rate reportedly dropped to around 20%, then climbed back to about 90% after the docs and rules were improved.
- Tips
- Set clear repo instructions and keep sensitive tools gated behind approval. If the agent starts making risky assumptions, tighten the docs and force it to work in smaller chunks.
Try it yourself with GitHub Copilot
I’m new to Terraform and need help with [infrastructure goal] by [deadline]. Use the repo’s docs and any instruction files as the source of truth, then break the work into small steps and explain each one briefly before coding. Draft or update one piece at a time, and after each plan or code change, stop and ask for my approval before you apply, deploy, destroy, commit, or send anything. If you need to touch production, secrets, key rotation, or teardown, show me the exact action first and wait for confirmation.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Run several coding agents from one interface
A developer uses T3 Code to manage multiple coding agents on personal machines, a VPS, and a separate work setup for code changes and writeups.
Use Copilot agent mode to finish a web app
Jonas used GitHub Copilot with Claude Sonnet to turn a game-score idea into a working app.
Use Copilot agents to ship a staff roster app
They built a Next.js staff roster app with Copilot agents, including 20 sample employees and editable records.
Use Copilot to handle small site edits in draft PRs
A developer handed GitHub Copilot two minor website tweaks and got back separate draft pull requests that were easy to test and merge.
Update a codebase with Copilot in chat and agent mode
A developer used GitHub Copilot to make code changes and preferred the CLI’s autopilot workflow and todo list.
Create a filtered summary page with Copilot
Copilot agent mode in Visual Studio 2022 built a charges report in a Razor Pages app, added navigation, and drafted the commit steps.