r/devops • u/davey_622 • Sep 08 '26
Discussion Vibe coding infra is creating more operational debt than it saves
Am I losing my mind, or has everyone else's job slowly turned into cleaning up after code generated by Claude?
When you ask a dev about parts of their code/deployments, the response is usually just: 'Well, the AI said it was correct.' I'm all for developer velocity, but it feels like the traditional 'you build it, you run it' model is shifting into 'developers prompt it, AI guesses it, and infrastructure teams debug the fallout at 3 AM.' How are your teams handling this? Are you putting hard guardrails in place, or just drowning in review queues?
39
u/Dr_Passmore Sep 08 '26
You need to have reviews and cicd needs to force approval by infrastructure team.
Only way you can stop the LLM generating the most expensive SQL instance for a development environment.
Only review infrastructure code. A pull request may change 50 files but only touches one terraform and one yaml file then my job in the review is simple.
270
u/G12356789s Sep 08 '26
I don't debug devs code, that's for them. I tackle infra related issues, which are probably AI caused but that's my fault
154
u/DarthCaine Sep 08 '26 edited Sep 08 '26
Good. Means demand for engineers will increase. Gotta game the late-stage capitalist dystopia
26
u/CorpT Sep 08 '26
Why are you allowing a dev to deploy something to infra that casuses a debug at 3am?
11
u/TheIncarnated Sep 08 '26
I don't allow it to pass into higher environments until it's tested
10
u/coinclink Sep 08 '26
Yeah, if you don't have a process and standards around it (including unit tests for changes), things will be a mess. This is not unique to AI coding harnesses.
There are plenty of both OSS projects and internal company projects that have basic requirements and standards that are accepting plenty of AI PRs, and auto-rejecting ones that don't fit standards. They've dealt with bad PRs for decades, this isn't new.
9
u/burgonies Sep 08 '26
You have shit going to prod that was created by some dev’s terraform without you reviewing it, whether AI or not?
5
u/Malforus Sep 08 '26
Is this like people are committing slop terraform or do you let devs provision infra?
5
u/mercanator Sep 09 '26
Its easy to blame AI but maybe the issues that are surfacing are because there isn't a shared corpus of standardized architectures and ways of doing things for what they are building. AI needs access to reference architectures that are gold standards to keep things consistent. Silo'd AI use tracks closely with the outcomes you're expressing here.
4
u/megaboobz Sep 08 '26
OH YOU'RE ABSOLUTELY RIGHT
4
u/gintoddic Sep 09 '26
if you don't have test cases for code and don't verify it comes up property you're not doing your job. AI can only guess you have to be experienced and responsible enough to guide it as well.
6
u/raisputin Sep 08 '26
Absolutely false. Vibe coded infra can be very very good if the person vibe coding it knows what the hell they are doing
3
u/da_blue_jester Sep 08 '26
That can't be true. Have you tried just being a 10x engineer? 20x? /s
3
u/Rascyc Sep 09 '26
I've had to clean up so much code from career IT people with weak developer backgrounds even before AI. On the flip side they've always helped me with compensate for my weaker network side.
AI made us all more independent after the switch but there's still not much changed from having to fix code. They can tackle bigger tasks now, that's for sure at least.
3
u/No_Bee_4979 Sep 09 '26
Agreed. I just left a role that was built with Claude and OpenAI. Half the time, people don't even realize when the agent screws up, or they don't speak up. For example:
We tried to deploy to staging, but we found out that our analytics (machine learning) person had started a backup, and it crashed, and the database was locked over the weekend, and they never spoke up. 3 days later, we can't deploy, and they don't even know why Claude was trying to back up the data.
The Tribal knowledge and technical debt are beyond levels I have ever experienced. The worst part is the xerox fuckup machine. If AI detects it twice, it will consider it canon. It doesn't matter if the code is right. It just copies it right over without a second thought.
The CEO felt that everyone should be able to pitch in with Infrastructure using AI. So my job was typically reviewing PR's that were an absolute fucking mess and trying to make them work.
This honestly was worse than when I worked for these twins in Seattle back in 2008 who were doing adderall to stay up 6 days straight. Sunday through Friday, with only micro-crashes at night and powering through at all other hours of the day.
Wow. To compare working for a startup that used adderall to keep up with a company using AI. Sure, the company was able to do in a year what it would have taken 5 years to accomplish, but nobody knows how to run it, and whenever you make a change, everyone is deathly afraid of it breaking.
3
u/like-my-comment Sep 09 '26
Implementator at least should know what code is doing. If no you can just close the PR.
3
u/imInHidingDontAsk Sep 10 '26
Had a data engineer try and deploy some stuff the other day. Literally messaged me and said he doesn’t have permissions to deploy can I just do it for him… said let me look before I stamp it.
Had a raw cloud formation yaml file along with terraform as well. Completely public ec2 instance that would have cost 6k a month and you could hit the backend with a database attached with a curl command.
Told him I’m not deploying that because it’s completely unsafe. When I asked if he was aware that the instance is public with an inbound of 0.0.0.0/0 on the instance he said yes.
Told my manager and he looked defeated honestly
2
u/__-___-__-__-__- Sep 08 '26
Don't worry they're letting AI guess at everything else too! Guardrails and account separation would go a long way.
My team is just drowning in it, but it's coming from the top so whatever.
2
u/derprondo Sep 08 '26
We provide an optional Terraform template repo with a pipeline for them to use, but we don't get involved beyond that. They own the cloud accounts we provision for them, so if their infra code is shit, that's on them. We have enough security and compliance governance to keep them from messing up too badly. We refer them to the cloud vendor if they need support in that regard.
2
u/redvelvet92 Sep 09 '26
You haven’t gone nuts I am also losing my mind. We are moving faster than ever but we sure aren’t getting more done.
2
u/yknx4 Sep 09 '26
Every infra change needs approval of the infra team. No matter if Claude, Codex or a dev wrote it.
2
u/divestblank Sep 09 '26
You mean the know-nothings trying to code are making mistakes ... say it ain't so.
2
u/QueenVogonBee Sep 09 '26
Strong code review process. Stop the bad code getting submitted in the first place (human generated or LLM generated).
If the pull request is large or too complicated, reject it. If you can’t understand it, reject it. If the code has poor structure reject it. If the solution is bad, reject it even before reading the code in detail. If there are insufficient tests, reject it. I could go on. The code reviewer should be just as responsible for the code as the person writing the code (not least because the reviewer might well be working on the code eventually). Enforce high code quality and readability.
2
u/ILikeBubblyWater Sep 09 '26
you work with shit devs then, its not really an AI issue, its very capable imo but shit in shit out is still a thing
2
u/kusanagiblade331 Sep 09 '26
I have always been a big believer that dev teams should be responsible for the slop they created in the first place. Infra team should provide and maintain the infrastructure. Not the apps' health.
That being said, it is so hard for companies to move away from the model that infra team maintains production.
2
u/Dry-Philosopher-2714 Sep 09 '26
Just drowning in review queues. Our best payback is using Claude to write RCA reports for app failures. 10 minutes of supervision, and devs get to read a 50-page report in the most obnoxious prose available.
2
u/Latter-Departure8714 Sep 10 '26
"The AI said it was correct" is how you get the 3am page. Review queues don't scale when every PR is a novel.
Hard guardrail we actually use: if the agent touched it, the file doesn't get to come out worse. Not a second model. A score from the source. You still own what you merge.
https://codescene.com/blog/making-legacy-code-ai-ready-benchmarks-on-agentic-refactoring
2
u/QuoteForward5477 Sep 09 '26
100% feeling this. the shift from "you build it, you run it" to "prompt it, merge it, let platform team clean up the mess" is getting out of hand.
the scary part is how clean the AI generated infra code looks. syntax is spotless, formatting is great, but it lacks all real-world operational context. we had a dev vibe-code a backend service last week and claude casually threw in a multi-AZ database setup with public endpoints just to get it working quick.
what we started doing to keep our review queue from becoming an absolute nightmare:
terraform planoutput in the PR comment. if a dev can't explain why a specific resource is changing in the plan, it gets instantly closed.velocity is great, but if the team isn't actually reading the diffs, it's just generating tech debt at 10x speed.
1
u/veriom 16d ago
That makes sense, when you're a smaller team, you need a way to keep things moving without every infrastructure change becoming another review bottleneck.
I think part of the answer is making it easier to identify which changes actually need attention e.g. a small Terraform or deployment change might look fine in isolation but introduce a new public endpoint, expand a service's permissions or affect a dependency elsewhere.
Policy checks and Terraform plans are useful, but they don't always show the wider consequences across the application and infrastructure. Ideally, you'd be able to see what changed, which services or identities are affected, and where the potential impact sits before approving it.
That way, the team can focus its attention on the changes that matter, rather than spending more time reviewing everything or investigating problems afterwards.
1
u/that-one_ITguu Sep 08 '26
We completely halted letting AI touch production code and infrastructure…..went from an average 15-20 "Critical" tickets to a handful. I pivoted into production support from being a developer. My company basically pushed some of our responsibilities to the DevOps guys during that short stint of using AI for building production code and environment. One of our senior guys threatened to leave because of how bad it got.
1
u/jony7 Sep 08 '26
I just use terraform and review the plans, don’t really care too much about the code anymore as long as the resources make sense
1
u/Traditional-Hall-591 Sep 08 '26
I don’t touch any slop. If you’re hype enough to vibe code, you’re hype enough to debug.
1
u/Silent_Aioli_4088 Sep 08 '26
Gitops with an interface so that devs can check their own issues and stop deploying AI slop.
1
u/aprettyparrot Sep 08 '26
I don’t have it do infra/system design. It’s total crap at it. And this is from a playing with it in home lab perspective, something larger or prod would be terrifying
1
u/mkmrproper Sep 08 '26
Devs think they can use AI to do infrastructure without ops. Good luck fellas…
1
u/Proxiconn Sep 09 '26
Should have used Astra. It's very good.
1
u/draconicmonkey Sep 09 '26
Everyone wants to be a developer until it is time to do developer things, like design, test, debug, etc. lol
1
u/divestblank Sep 09 '26
If you keep fixing it at 3AM I can tell you exactly what is not going to happen.
1
u/imLazyCartard Sep 09 '26
There needs to be gaurdrails on devs creating or updating infra at the least. Ownership should be clearly defined and infra should only pitch in if the issue is not getting fixed by devs
1
u/gbrennon Sep 09 '26
Not only for infra... Vibe coding created more tech debt than human.
If u want to use agent to write code for u really have to understand and review what agent is writing
1
u/lez3ro Sep 09 '26
Definitely. After a recent pivot to IaC (mainly Terraform and Ansible), for which I got ownership. The amount of shit some juniors vibe code is just too much. A "-10x engineer" with AI will just do more stuff that will -10x. Examples, Ansible role duplications instead of updates, horrible CICD pipelines which are huge, barely functional for 1-2 teams and we are supposed to be able to cater to 10+ product teams. Small tasks become huge initiatives for no reason, leaving mountains of shit to cleanup later. All planning and instructions go out the window. Complete lack of the ability to be able to explain what they've done, they always have to share their screen for a simple task.
No matter how much feedback you give these people, they genuinely think that with AI they could replace entire teams. Ignorance is bliss I suppose.
1
u/UltraPoci Sep 09 '26
I firmly believe that vibecoding causes a ton of issue and it's not worth it on the log run. People underestimate what a bad dev with AI can do to your company. Everyone keeps repeating like parrots "10x engineer* like they're fucking automatons and don't stop to think the amount of tech debt that can be generated with AI.
1
u/vit_do82 Sep 09 '26
The worst part is not even the 3am debugging. Its the hidden complexity that stays after the incident. I inherited infra where nobody can explain why half the configs exist - the AI wrote it, the dev approved it blind, and now every change is a gamble, supporting it without the LLM around is basically impossible. Guardrails help but only if someone actually reads what the AI generated. Same people who approved it will not debug it.
1
u/Specific-Welder3120 Sep 09 '26
Very well, go back to writing code by hand on vs code. Push that as a company policy.
This is not 2024 and you're not using gpt-4o anymore, cut the crap
1
u/JS103410 Sep 09 '26
The "it's safe to ship" gap gets really big with AI built software rn. Makes me wonder what's going to happen in the future at the rate things are going. Idk what to even think atp
1
u/ali-hussain Sep 09 '26
While I'm not going to argue that technical debt is increasing faster. I'm not convinced it is increasing faster compared to how much faster development is happening. Our codebase is greenfield and mostly exists because of AI in my current startup but I have exposure from leading a DevOps consultancy to what the world used to look like before. I feel like I'm making more architectural changes but that's because what we would have implemented in years we're implementing in months so we need to keep on upgrading our capabilities.
Also a primary job of DevOps is to inprove the ability of developers to create code? Have you beefed up your automated testing and scanning? Do you have multiple coding agents doing code reviews? Are you using code to generate more of what you would have written?
1
u/Hostman_com Sep 09 '26
1
u/stibbons_ Sep 09 '26
That’s the kicker. The asker should be the debugger
1
u/strongbadfreak Sep 09 '26
If they say things like "AI said it was correct". They should be fired because they are already replacing themselves with AI, and they have no idea how LLMs work, and should never call themselves engineers as long as they hold that view.
1
u/Ancient_Canary1148 Sep 09 '26
very funny,i have been working on this the last week,how to allow vibe coders to run their prototypes (only a few are usable).
i ended with agents config,deterministic pipelines and an isolated network for a k8s cluster.
i wipe the cluster once a momth and those prototypes that already work,need to go assesment.
1
u/duebina Sep 09 '26
The operational debt is because the people using AI are not considering the full life cycle. This is a human issue.
1
u/mothzilla Sep 09 '26
The fact that "vibe coded infra" exists makes my blood run cold.
1
u/Sad-Technician-5552 Sep 09 '26
No one wants to own is the inventory. Every ai generated stack is another thing that doesnt exist anywhere until it pages you at 3am or shows up on the bill. Review gates and approvals fix the quality problem but then they do nothing for the visibility problem.
You can gate what reaches prod and still miss the vm spun up in a sandbox account that never got closed, or the db quietly costing four figures a month.
worth running a discovery pass over your accounts and endpoints on a schedule, because the generated shit piles up faster than reviews catch it. the tools that do that cross-cloud inventory, axonius among them, flag anything that appeared with no matching record. that is the meamss, honestly. the code you can review. the stuff you never knew got stood up is what bites.
1
u/abotelho-cbn Sep 09 '26
Nothing to do with AI.
The developers need to understand the code. Period. They are responsible for it. Get management involved.
1
u/rash805115 Sep 10 '26
I know I am self promoting but I faced the same issue and I am building this platform to focus on intent changes rather than actual code because that’s where the disconnect lies imo
Devops needs to build and protect safe infra modules and devs can only use the module like a black box.
Devs operate on intent, not on cloud resources that they don’t understand very well. Asking them to actually build infrastructure is always going to go bad. And they don’t have any tools other than cryptic plan mode to tell them right from wrong.
Checkout https://octo.quadnix.com
1
u/vlad_h Sep 11 '26
Common brother. Sure, if you have no clue, ai generated it is good enough. If you know what you are doing, slices, units of work, red team, multiple vendors, manual review and so much more. Don’t confuse idiots using AI and accepting things blindly for competence. It’s like putting your car on autopilot and then freaking out because it fucked up. It’s a tool people.
1
u/matiascoca Sep 11 '26
Not losing your mind. Cursor-generated Terraform module landed on our repo last month, three IAM roles named after coffee brands, permissions all wildcards. Passed review because 'the AI said it was correct.' We started requiring every infra PR to link a one-sentence ticket describing what actually changed. Cuts the ambiguity in half.
1
u/Tricky_Ordinary_4799 Sep 12 '26
Right now I'm using Claude 80% of time to clean up, verify and harden our old terraform stuff. I'm literally cleaning up with Claude after humans.
1
u/BetterWhereas3245 Sep 12 '26
Who do you reckon was causing all the infra issues before AI?
1
u/dexterdev8 Sep 14 '26
I think it depends on the app. If you plan to deploy an app for millions of users, no AI can calibrate your setup better than yourself. Now if you are deploying small apps that only have a few users or just you, then ig is fine to leave it to the agent, mainly because you are probably deploying on your own infra.
1
u/No-Leather6291 Sep 15 '26
I created a plugin which every dev is using. It consists of a couple of infra skills which really just wraps a couple of terraform modules for consistency. The plugin is instructed to make the dev create his own infra and create a pull request in a central platform for additional resources like entra/graph stuff or custom rbac. It works ok.
1
u/richet11 Sep 20 '26
Older generations (pre Opus - Sonnet etc) of AI generated code definitely have extensive levels of slop so there is tech debt introduced. However the latest models like Fable or OpenAIs Astra are writing better code than the majority of human developers.
I'd make sure that if any AI code is hitting production that it is produced by the latest frontier models. Anything else will end up in a headache.
1
u/KJ4WLC Sep 23 '26
This matches what we saw: generation made the first deploy cheaper and the second incident more expensive. Infra that nobody can explain is a liability with a green pipeline. What helped was a hard rule — no merge without an intent note (problem, constraints, blast radius) and an owner who can still operate it at 2am. AI can draft the Terraform; it can’t own the pager.
1
u/JovHere Sep 08 '26
infra is precious if done right, I wouldn't let AI touch it
0
u/chalbersma Sep 09 '26
Yes, organizations that are building and deploying with AI are betting that AI will get good enough in 5-10 years when their systems start to break that they can ask AI to fix it and it will be able to do so.
0
u/RelationshipLong9092 Sep 09 '26
Counterpoint:
I work at a small company of about 20 physicists that's been going for 25 years. We had no meaningful infra when I joined. There was a GitLab that essentially no one used, as code was shared by copy pasting into a shared NAS. There was not a single test, company wide. It gets worse from there but I'll spare you.
Now we have CI on every project, 90% code coverage and climbing, static analysis, linting, fuzzing, automated vulnerability scanning + remediation, and more. We've found and fixed bugs that have been around for fifty(!) years. Soon we're going to have automated code reviews too, all implemented in-house.
I did that on the side while actually doing my actual science work. I'm sure there's numerous problems with it. But those problems are nothing compared to what problems they've allowed me to solve without having any background in devops.
0
u/[deleted] Sep 08 '26
[deleted] — view deleted comment
4
u/[deleted] Sep 09 '26
[removed] — view removed comment
-2
u/[deleted] Sep 08 '26 edited Sep 09 '26
[removed] — view removed comment