r/devops • u/pullicinoreddit • Jul 10 '26
Discussion Is anyone using Claude or similar to fully automate DevOps and Infra? What are it's limits?
Hi all, this is my first post here so please be kind :)
I am interested in knowing from your personal experiences, what the limit of AI is for fully automating the build pipeline and infrastructure.
Has anyone been doing this?
Reason I am asking is that one of my devs says this is fully automatable and no human is involved (apart from one operating the AI), and another of my developers says that this is not possible.
Any feedback from personal experiences is appreciated!
0
Upvotes
21
u/xgunnerx Jul 10 '26
I’ve used Claude to create the CI/CD workflows themselves, but never would I ever use a non deterministic engine to run and manage them. That’s a footgun waiting to happen.
28
u/Pack_Your_Trash Jul 10 '26
It's called an agentic workflow. Lots of people do it. Seems like a great way to burn a lot of tokens and get unpredictable results.
5
u/SurfRedLin Jul 10 '26
The more complex the task the less ai suited.
4
u/PaleoSpeedwagon DevOps Jul 10 '26
In the wise words of Del Griffith from Planes, Trains, and Automobiles, "And if they told you wolverines would make good house pets, would you believe them?"
The people who are hyping this up are NOT the same people who are getting paged to clean up the mess.
Do I use Claude and other AIs? Yes. I use them for a variety of things:
- synthesizing a large, broad swath of ideas
- quickly generating scratch code that will absolutely need to be reviewed deeply and thoughtfully by an actual engineer, possibly more than one
- consultation when I've hit a wall...in the event that my own biases are the problem, I want something that has access to a gigantic dataset and might be able to offer a notion that I hadn't considered.
What I don't use it for: creating a finished product.
3
u/adevx Jul 10 '26
It's not a binary answer. It depends on regulations you may have to abide to, eg healthcare, banking. Your appetite for risk. How you implement it, eg let AI run deterministic well tested code, or yolo entire stack orchestration prompts. I pretty much fully automated my deployments with codex. It writes the Ansible playbooks, executes them and use it to debug issues. Secrets are not directly readable by Codex and require a manual unlock step from an external factor.
3
u/Next-Task-3905 Jul 10 '26
I would not frame it as "can AI fully automate DevOps". The useful split is: AI can propose changes, deterministic systems should execute and enforce them.
Where I have seen it work well:
Where I would not let it run unattended:
A practical architecture is:
The limit is not intelligence. The limit is accountability and blast radius. If the change is reversible, low-risk, validated by tests, and executed through existing automation, AI can remove a lot of toil. If the change is irreversible, privileged, expensive, or hard to verify, it should be a proposal plus evidence, not an autonomous action.
So one developer saying "fully automatable" and the other saying "not possible" are both compressing the issue too much. Automate the boring path aggressively. Keep authority, policy, secrets, and irreversible production actions in deterministic systems with explicit approval gates.
2
u/Tenelia Jul 10 '26
Hm... The safest way I've found is to have the usual CI/CD scripts fire off FIRST, which then fills the reports, and MISC tasks are automatically fed into an LLM along with our own templates and dictionaries.
e.g. We have to deal with quite a lot of JSON/YAML work, with some element of uncertainty but within a tightly bounded scope. Most of the grunt work is done by LLM, then a series of linters, then CI/CD for unit testing... func testing... integration testing... then final review.
And that's about the best you can expect. Mind you, we run that on-prem with a really old threadripper rack, so the cost has been negligible so far. I don't know what you westerners are using, but we do have small and dedicated models here for such work.
2
u/schmurfy2 Jul 10 '26
What are we talking about exactly ? What is "Devops and infra" ? This means nothing....
An ia can help you write terrafom code, review it and maybe do some checks but if you mean letting your ai fully manage the infra without any intervention like a vibe coder would with code that madness.
The real question is always the same: if it breaks who is responsible ? You is going to be woken up at 3am ?
I am tired of seeing ai agents used everywhere for anything...
2
u/overwireio Jul 10 '26
If your pipeline components/workflows are broken down into modular slices and stimulated with the right context of how everything fits together, I find this can produce some surprisingly good results. This tends to work great for CI - But the nuances of CD are quite a bit more complicated and are more likely to produce problems.
The current landscape is about recognizing where it can be applied effectively and where it is better left to people due to cost or capability issues. That said, having the second opinion is still pretty valuable.
2
u/forever-butlerian Solaris 8 Enjoyer Jul 10 '26
Partially and not intentionally.
What I mean by that is that one of the devs at a client of mine had Claude Code repeatedly execute
tofu applydespite repeated instructions not to. Opus 4.8 is an adequate but flawed code reviewer. It can be pedantic in a way most humans are not capable of, but its pedantry is wrong about 25% of the time. The things it can do, it takes longer to do than a human would, but this is offset by its always being available to do them.Would I ever put this in actual control of anything in production? Absolutely not. This is the definition of begging for a common-mode failure. If it has the access to, or if it can parlay the access it has to the access it would need to do so, the probability of it simultaneously deleting production data and all the backups is unacceptably high.
Could it in principle be done? It's a generator of biased but still stochastic inputs, so yes. Would it be more expensive and failure-prone than having a human do it? Also yes. There's also a constant bleeding of OpEx if you use LLMs to do this, whereas with human-built infrastructure tooling you can climb the ladder of abstractions until you've completely amortized the up-front cost of building the tooling once it's effectively done. As soon as you're forced into reality-based billing again (or conversely, when the impossibility of reality-based billing forces OpenAI and Anthropic into bankruptcy) you will have a substantial problem on your hands.
2
u/Raja-Karuppasamy Jul 11 '26
use claude heavily for building infra and pipelines but “fully automatable, no human involved” is the part i’d push back on. it can generate terraform, write ci/cd yaml, even debug why a deploy failed, genuinely fast at all of that. but it doesnt know your actual production context, why a weird workaround exists, or what “safe” means for your specific setup unless you tell it. the dev saying no human required is underestimating how much judgment goes into deciding when something is actually safe to ship, not just syntactically correct. it’s less “fully automated” and more “does the typing so you can focus on the judgment calls”
2
u/amiorin Jul 11 '26
Software Engineering is now solved by Agentic Engineering. It you transform DevOps in a Software Engineering problem than you can leverage Agentic Engineering. An example?
https://github.com/amiorin/red
https://github.com/amiorin/green
https://github.com/amiorin/blue
The idea behind these 3 libraries is that DevOps tools should be just fancy curl for the lifecycle of resources and we should get back the graph so that we can build CLIs ourselves.
Red/Green/Blue are written with Fable 5 and you should also use them with a coding agent.
2
u/Human-Vegetable823 Jul 11 '26
I think the biggest gap by using AI is they don't know the domain knowledges. The domain knowledges are vary in different teams. So without this context, AI just burns tokens with inaccurate results. I have been struggled on this so long and didn't see a solution in the market so I built one. I have posted to the Weekly Self Promotion Thread: https://www.reddit.com/r/devops/comments/1uopcqy/comment/owtv0bj/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Not sure if this will be marked as an advertisement. Anyway, I just wanted to see if it can help others in this area as myself can get the LLM works well for handling incidents by leveraging the product I created above.
5
u/dektol Jul 10 '26
It can with constant push back and asking for receipts. You can automate parts of this. I use it to accelerate things but I have to treat the information like I heard it from a flat earther.
2
u/_herald Jul 15 '26 edited Jul 15 '26
my claude does my job, m just a reviewer at this point..
i write pipelines, fixes, infra with terraform.. i even do performance tuning, report gen.. app code fixes with ai.. i only review what its doing and yes i catch alot of mistakes .. the key is to spend time on planning something and once the picture is 100% clear with what and how its gonna do it… i let it do it but i still review everything its doing
and yes this has allowed me to ship results faster and more reliably to be honest..
4
u/glotzerhotze Jul 10 '26
It‘s a wet fever dream to „fully automate DevOps and Infra“ and everyone telling you otherwise is lost in hallucinations.
Using a stochastic parrot to take care of your value chain is always a good idea, isn‘t it?
1
u/Holiday-Medicine4168 Jul 10 '26
I’m building large agentic pipelines in major financial companies. We have strict rules around standards and agent harnesses. The tipping point was when we realized that agents were better at PR review than people because humans just rubber stamp things and you can tell agents not to and they listen. There is a movement to eliminate human PRs as policy in many places for this reason.
1
u/TheIncarnated Jul 10 '26
Yes, but not in the way you think and no where near as limited as some of the folks here believe.
You need IaC, Agents are great at writing code (don't read ideas or full products out of that statement). Have the agent write tofu for your environment. Describe the environment.
Now you have IaC for what you want built.
I've had it fix docker containers when the devs kept telling me it was the infrastructure (it was not).
I've had it reverse engineer a database product off of the database code alone.
It's really great at patterns and following directions. In no way will you ever get a 1 prompt shot and a full product end to end.
Creating and managing IaC with a skills.md? Ohhh yeah, definitely
2
u/[deleted] Jul 10 '26
[removed] — view removed comment