r/devops • u/PuzzleheadedSoft6875 • 25d ago
Discussion Across the whole DevOps stack (Pipelines, Terraform, K8s, Docker, Ansible), how much do you actually write by hand vs prompting or using templates?
With so many different syntaxes and configs in our daily stack—CI/CD pipelines (GitHub Actions, GitLab), Terraform modules, Kubernetes manifests, Dockerfiles, Ansible playbooks, and Bash scripts—nobody can memorize every block and flag from scratch.
My current workflow is to use AI or existing templates to generate the initial boilerplate for Terraform resources, pipeline YAML, or K8s manifests, and then manually write, wire up, and audit the core architecture, state management, IAM/permissions, networking, and security logic.
For those working in production environments (and those running technical interviews):
- In your day-to-day work, what parts of the stack do you still write completely by hand vs prompting an LLM or pulling from docs?
- Where has AI actually helped you across Terraform, CI/CD, and K8s, and where does it consistently break things?
- What is the realistic expectation in interviews right now regarding writing configs from memory vs understanding the underlying systems and debugging?
82
u/G12356789s 25d ago
At this point, Claude pretty much writes everything. I read and validate every line change but to be honest, with good prompts, context and skills, it gets it right 95% of the time.
A team mate also then reviews it too. Most likely with the help of their Claude
32
u/AstraeusGB SysOps/SRE/DevOps/DBA/SOS 25d ago
It's good to know that these skills I have spent years learning are being invalidated by a datacenter in Kansas
9
u/phxees 25d ago
I used to do nearly everything by hand, then intellisense helped, then AI.
I still will edit by hand when I notice an AI mistake.
12
u/ForkMeJ 25d ago
In production I care a lot less about who typed the YAML from memory and a lot more about who can read generated config and catch the dangerous parts. AI and templates are fine for boilerplate, especially for provider syntax I have not touched in a while, but I do not trust them with IAM, network rules, lifecycle settings, or anything else where a quiet default turns into an outage or security problem later. In interviews, I would rather watch someone review a bad manifest, deployment, or Terraform plan and explain the risk than watch them guess at flags and indentation. If they can debug the example and talk through blast radius, rollback, and ownership, that tells me they can operate it when it breaks.
10
u/generic-d-engineer ClickOps 25d ago edited 25d ago
Just secrets and config are manual, everything else is robot
I think not using AI at this point is gimping your output.
Usually tho when I get a new technology stack I’m not familiar with, I’ll do it by hand at first so I can get the concepts and muscle memory down. So when I switch to AI, then I know what it’s doing.
9
u/Spiritual-Seat-4893 25d ago
I write terraform and python by hand, get it reviewed by claude for improvements, cus these are my strong suit. I get all bash script done by claude.
2
u/raisputin 24d ago
Used to be 100%, now 0%
2
u/Gargle-Loaf-Spunk 23d ago
I haven’t written any serious code all year. LLMs do everything.
2
u/algorys 21d ago
Nowadays, I primarily fix scripts that are incomprehensible or difficult to maintain or things that don’t provide enough feedback during the workflow.
2
u/Aromatic_Dot_9536 25d ago
i do not write anything, just copilot or claude, then review it and ship, there are so many projects going on so no time for manual writing.
1
u/gradinka 24d ago
almost everything
1
u/bak_1250 23d ago
Honestly I don't care much who wrote the first draft anymore, human, template or AI. What I care about is that nothing reaches main without automated checks, because generated config is confidently wrong in subtle ways.
What runs on every PR for us:
• kubeconform (after kustomize build / helm template) for manifests
• terraform validate + tflint, and the plan posted on the PR so a human reads the diff, not the code
• Trivy config or Checkov as a blocking step for misconfigs (privileged pods, public buckets, missing limits)
• hadolint for Dockerfiles
• Kyverno policies in the cluster as the last gate
Templates and AI save time on the 80% boilerplate. The checks are what make it safe to accept that speed.
1
u/Gbonk 24d ago
I write almost all of it. Use Claude or whoever for suggestions or examples for new resource providers. Claude doesn’t write the code in the style I want and it takes too long to tell Claude what I want and how I want it.
0
u/Ok-Hospital-5076 24d ago
Never from scratch but yes need to edit few lines sure not wasting tokens on that . I am more for an auditor and maintainer now .
-1
u/Fc81jk-Gcj 25d ago
We’re done for. Claude doesn’t all