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.

Done with GitHub Copilot· Intermediate

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.