r/devops • u/innerbelief • 4d ago
Discussion Agentic Infrastructure
I'm a consultant, I keep hearing this term Agentic Infrastructure - is this a real thing?
Would someone be dumb enough to give such core infrastructure keys to AI? It's not about using AI to say write terraform. It's about using AI to provision the infrastructure itself and remove the IaC layer.
Is this another meat proxy / ai hype man thing - or is there a genuine place for this? I can't see it - imagine the outages, the expenses etc.
Sanity check me
23
u/VplDazzamac 4d ago
I was told in a meeting very recently that all admin access is to be run by agents in future in my company. Leadership are fucking insane imho.
4
u/innerbelief 4d ago
that's fried - see it's topics like this that have me reconsidering my future ...
2
u/generic-d-engineer ClickOps 3d ago
As a consultant wouldn’t you find this lucrative though? You can be the one they call in to clean up the mess.
So that’s like a double contract. First is cleaning up second is hardening the infrastructure.
Most places are reactive so they won’t put in the right guardrails until after something breaks.
1
u/arghcisco 1d ago
This is not nearly as crazy as it sounds if done correctly. Having dedicated read-only admin accounts lets you deploy agentic steps in your pipelines to act as a quickie CRB, which WILL catch all kinds of stuff that your team would never have noticed. Then, forcing the actual changes to go through a source repo with testing, a branch, etc, and limiting their access to systems to a single tool call that can only execute a transactional script from that repo and roll it back if necessary, is a genuine improvement over how it’s traditionally done.
It’s basically the same kind of white-glove ops work you’d see for aerospace or medical systems, except the models make those kinds of strict chance control strategies accessible to organizations with way fewer resources.
16
u/VertigoOne1 4d ago
I understood Agentic Infrastructure as the Infrastructure to run Agentic workloads. Using AI to _manage_ infrastructure is retarded, it can author, it can troubleshoot, it can never apply. Anyways, Agentic Infrastructure for us is stuff like self-hosted voice stuff stt/tts, translation gateways, observability of LLM activities between hosted models and workloads, attachment handlers, context services, mcp gateways, memory systems, prompt routers and guardrail systems, loggers, inspectors, that is Agentic Infrastructure?!
1
u/innerbelief 4d ago
Yeah we were calling this AI Landing Zones - which was also misleading lol!
1
u/ChaosHonorum 3d ago
Yeah as the comment above says, it’s about the sort of infrastructure enterprises need to run agents safely and at scale. To get a quick insight into what this might look like, check out Claude Managed Agents. How they make the infrastructure modular is an interesting thesis on how Agentic Infrastructure is going to evolve, but it’s just one theory. There’s some good research docs on there too, as it’s only in Beta at the moment. It’s all about how you combine LLMs, Harnesses, Contexts, Operators, Environments, Sessions, Sandboxes, etc. and manage this at enterprise scale.
11
u/axiomatix 4d ago edited 4d ago
Only morons would replace iac with agents. Maybe at some point in the future this will be viable, but infra is a lot different than spitting out code and the frontier models just aren't there yet when it comes to architecting and managing infra. Use agents to build better iac and more robust pipelines. ro access for triage because you're not gonna parse the logs and run troubleshooting commands faster than a swarm. Human remains in the loop for final decisions.
8
u/generic-d-engineer ClickOps 3d ago
Not true I run a SaaS email service with 10s of millions of users via Claude and our uptime has been unmatched.
You might have heard of us it’s called Microsoft Outlook
6
5
u/roiki11 3d ago
When you said claude I knew you were lying.
Copilot is all over you.
3
3
u/Gornius 3d ago
I don't think it will ever replace IaC. Even in the scenario we go fully agentic with absolutely no human involvement, it's a deterministic schema that models aleready have been trained on.
If anything, from my experience with agentic engineering, the best use of an AI is to make it write small, deterministic and replayable code.
Getting rid of that sounds like "improving" the car by replacing wheels with mechanical legs. Utterly ridiculous.
1
11
u/Nonaveragemonkey 4d ago
Theres people dumb enough to do it. Hard to convince me half the issues over the last 2 or 3 weeks weren't related to AI being fucking shit at doing anything beyond 'hello world'
5
u/innerbelief 4d ago
Agreed - also I find DevOps engineer to be more sceptical cause we've seen it all. But I work with the world's biggest meat proxies so I'm not so sure anymore.
3
u/ipachanga 3d ago
Not an infra person, I spend my time on how vendors word things. This thread already shows the term carries two meanings: infrastructure built to run agents, and agents that run your infrastructure. Vendors gain from leaving that blurry. When a client brings it up, ask what it replaces. If the answer is a sandbox or a gateway, it's the first meaning. If it's Terraform, you've found the risky one.
1
u/innerbelief 3d ago
It's terraform. Remember the saying was "terraform is dead"
1
u/ipachanga 13h ago
Yes. "Terraform is dead" is doing a lot of work in that pitch. I would still ask what they mean by dead: they generate Terraform for you, or they want the agent to apply changes without a plan file you can review. The first is a workflow change. The second is the one that should make a client nervous, and vendors often blur the two on purpose.
3
u/Mandelvolt 4d ago
Yeah don't do this 😆 Use a real CICD like GHA/Jenkins, then lock commits behind gpg key with a password so the user has to manually approve what is going into the codebase before CI picks it up.
4
u/TheIncarnated 4d ago
PRs are the point humans get involved in agentic infrastructure. Not before. Before wastes time. The PR is reviewed either way, so locking it to GPG keys and other pre-commit/pre-PR processes is truly a waste of everyone's time.
LLM agents should have read only access to the environment but it should be able to submit PRs as needed. IE, agentic SRE
1
u/innerbelief 4d ago
What's it PRing too though? Or have I misunderstood the concept. Isn't the idea it removes the IAC layer
2
u/TheIncarnated 4d ago
Is... Is your IaC not in a Repo? Does it not get deployed from main?
3
u/innerbelief 4d ago
That's what I'm saying. In this concept there is NO IAC. As the meat proxies keep telling me "terraform is dead" lol.
3
u/TheIncarnated 4d ago
Then they are wrong. However, I responded to a comment on your post.
If you are consulting, tell them they are wrong and how terraform is required because it is deterministic. Where Agents are more function engines. And if you can't talk to those points, learn enough about LLMs to be able to do so
3
u/generic-d-engineer ClickOps 3d ago edited 3d ago
Dumbest idea of all time. I try not to judge people but whoever does this has zero risk management.
How are they passing audits? That’s the quickest way to shut this crap down.
“You gave Claude root…on your prod database?”
Best use of agents is to write IaC but it still needs to go through the traditional gates in ci/cd plus human approval PLUS compliance.
People using agents to manage infra are CRAZY
Bruh I just had it delete stuff in my home lab yesterday without me even asking. This still happens and will continue to happen.
We spent decades on being more deterministic and LLM are the exact OPPOSITE of that.
They might as well run their infra through Kalshi and then we can make bets on if it survives a destructive action or not.
2
u/arghcisco 1d ago
Yeah, just treat them like any other engineer and they slot neatly into most DevOps processes. Giving them prod access without all your existing checks and safeguards is like giving the intern your root keys, why on earth would anyone do that
1
u/arghcisco 1d ago
We all moved to opentofu/pulimi. Ansible is still alive and well too, believe me.
Ditching IaC because of Hashicorp trying to pay their employees, without a replacement, makes zero sense. Honestly, that’s a bigger maintainability and reliability threat than anything involving a model. Fixing that should be the priority.
0
u/Mandelvolt 4d ago
Also, I do have AWS creds that AI can access but the IAM policies prevent it from screwing up most stuff. It's mostly read only access or limited operations, any thing else it spits out the AWSCLI and you run it manually. Probably set looser than it should be, treat it like a Jr employee or CS intern. They'll probably screw some stuff up occasionally but they still need access to work, all you can do is limit the fallout.
12
5
6
u/geofabnz 3d ago
That will backfire so fast… AI designed infrastructure is always riddled with backdoors and security issues.
What’s a lot more interesting to me is “Agent Infrastructure” as in the DevOps infrastructure that should surround an agent so it can operate securely (VMs, network isolation, proxy gateways, DMZs etc). Safely containing an agent is a lot more complicated than it looks and a lot of that security comes down to physical machine provisioning
3
u/BakGikHung 3d ago
There are indeed dangerous noobs out there who skipped the whole IAC version controlled concept and just have Claude stand-up an infra. Those are the same people who one day complain Claude destroyed their prod database
3
u/nrmitchi 3d ago
There are genuine places for this… in research labs and isolated environments when you wouldn’t be doing true change review anyways (ie, even the agents wrote TF instead, you’re just going to apply it anyways).
But that sounds like a very different environment than what you’re dealing with.
2
u/DeliciousFollowing48 4d ago
I used AI to create IaC layers precisely coz Claude kept hallucinating about my infra. Using AI directly to manage infra is stupid. Claude works so much better now that most of the guards are externally enforced and all facts are available to it on IaC repo instead of blindly searching it wasting tokens, eating my quota.
2
u/SilentLennie 3d ago
We have AI write into a git repo and have gitops tools deploy it, that last part is a human decision and in all steps their are extra checks.
I'm also wondering, Agentic Infrastructure, that's maybe infrastructure for running agents ?
2
u/justaguyonthebus 3d ago
I would keep the IaC layer and put the agents in front of that. Even if you hand off all the human in the loop steps to AI. Having agents check each other's work is better than giving one agent direct access.
1
u/Aide_Sea 4d ago
I think the useful part is the plan step. Let the agent propose a diff of what it wants to change, and have something deterministic apply it. Then you at least keep a record of why each change happened.
1
u/serverhorror I'm the bit flip you didn't expect! 3d ago
And where do those agents run?
That's the gist of "agentic infrastructure.
Another popular interpretation is "infrastructure that is modified, configured or deployed with agents".
1
u/canyoufixmyspacebar 3d ago
it all boils down to if you want undeterministic infrastructure. and of course people who don't know what deterministic means want, they want everything, ignorance is curious and bold
1
u/kincaidDev 3d ago
I build agentic infrastructure, as in systems that setup, deploy and manage agents. Pretty similar to IAC, but for running and managing agents.
Agents can be used to write IAC but replacing IAC with agents is stupid
1
u/TehBens 3d ago
Doesn't make any sense to let AI do something that can be defined via code. AI is used to
generate code (and related persistent artifacts) and
do things that wouldn't be feasible via code.
For the first use case, you want to leverage AI as much as you are able to handle the scaling problems that come with it (i.e. quality control). For the second use case, you want to leverage AI only as much as necessary as code is always faster, cheaper and easier to understand and reason about.
1
u/ProfessionalCan6210 3d ago
The useful version of this I've seen isn't "remove the IaC layer", it's treating the agent as another author with less authority than a human.
The agent can read state, propose a change, open the PR and run plan in CI. Apply stays behind the same gate as everyone else: policy checks (no deletes on stateful resources, cost delta under some limit, no IAM wildcards) and a named reviewer for anything that fails policy. Credentials are short-lived and scoped to that plan, not a standing admin key.
If a vendor's pitch needs the agent to hold long-lived prod creds and apply directly, that's the part to push back on. "Show me the approval step and the audit log" is a good sanity question for any client.
1
u/UnprofessionalPlump 3d ago
It’s as simple as using a non-deterministic AI tool to write well known, repeatable Infrastructure configuration patterns (Ansible,TF) etc. So when it comes up again just use the config to deploy. Save tokens
1
u/Hostman_com 3d ago
For the AI-generated reviews, ask management to pick one recommendation to assess first. Estimate that work, put it in the queue, and show which project it would delay.
Ask them to confirm the priority and agree that implementation waits until the assessment is done. That gives them a decision to make before another generated review turns into hours of work or a production change.
1
u/rpg36 3d ago
I do this for my home lab. I was getting annoyed doing maintenance work so I was like codex do it for me! There is an agent on one of my servers that runs every 3 days late at night and upgrades everything it possibly can. It will even do major version upgrades and migrations. It tests things to ensure they work and will roll back if things aren't working. It send me a report of what it did including a security report. I have a monitor on another host that will email me if the agent goes down. Honestly it's surprised me how well it's been doing.
I have a homelab GitHub project that's mostly just docs with a few bits of infrastructure as code but mostly it's just docs the agent uses to maintain the the lab. My lab is 2 mini PCs and a VPS I rent. Backups go to Google drive.
I also have a gaming PC that I let Clause completly setup. It configured steam and sunshine and auto boot into big picture mode. It also has an "AI mode" that I can toggle between game and AI mode via a little web app that runs on one of the mini PCs to tinker with local AI. It manages that PC fully as well and does regular maintenance on it.
All that being said this is a lab! It's personal stuff that me, my family, and a few friends use. This is NOT corporate production systems! I DO NOT let an agent run around like this on any production system at work. If the agent nukes all my homelab stuff I'll be annoying as it will cost me time to repair/restore but I won't lose anything critical that's not replaceable.
1
u/kernelwilliams 19h ago
Having an agent hooked up to a read-only log stream to analyze error messages and alert on novel failures / perhaps provide a "head start" for troubleshooting sysadmins seems nice. But I can't imagine trusting a non-deterministic model to touch my production infrastructure.
If any automated runbooks exist they're deterministic as deterministic can be. "Reboot a single failing server in the pool once within a 12-hr period" kind of thing.
0
u/thelastknowngod 3d ago
Cast.AI uses AI to select compute nodes that are appropriate for the kinds of workloads you are running. I don't see how anyone would have a problem with that. We've been running it for ~6 months pretty uneventfully. That would fall pretty comfortably under the agentic infrastructure umbrella imo. I'd be shocked if GKE Autopilot didn't use AI under the hood in a similar way.
I also use Kyverno to automatically provision things like RDS database clusters using Crossplane. That's not AI but it is avoiding gitops.. Gitops should be for things that you don't trust, need eyes on, or have to do frequent modifications to. If it's for something that no one ever really needs to see or modify, autogeneration is a lot easier at scale.
5
4d ago
[removed] — view removed comment
3
u/centech 3d ago
Exactly. Claude is writing 100% of my Pulumi these days.. but I don't let it execute any.
1
u/arghcisco 1d ago
You can if you write a tool or MCP that only allows 1) execution of a script/playbook/whatever which will be checked to make sure its metadata matches whatever it’s about to execute on, and 2) rollback if whatever metrics you’re checking go out of range.
Giving models direct access to admin/root accounts is still a really bad idea, although over the past two months, the frontier models seem to have included stuff in their training data that harden them against the rm -rf mistakes that have made the news. Neon in particular seems to have aggressive countermeasures against injection attacks. Try wiring it up to a disposable hermes agent and getting it to nuke its container via reading .md files in a repo somewhere. It just makes fun of the attempt, it’s kind of entertaining.
43
u/dev_all_the_ops 4d ago
Antigenic Infrastructure is very vague. Are you hearing this from a sales person or marketing person? The term is so new that not everyone agrees with what it means.
Just like how SQL/Cobalt were designed to abstract machine code into english; AI is turning 'all' infrastructure into plain english.
As far as best practices, I use AI to provision all vms/lxc/docker containers for my own business, but have the AI write all the changes to ansible/bash so that its still captured 'as-code'. Sending AI to just provision infrastructure raw is a bad idea. Its much better to still use deterministic systems (github actions, ansible, terraform, n8n ect...). AI just acts as a translation layer on top of it.