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
45
Upvotes
44
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.
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.
17
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?!
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.
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'
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.
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.
12
u/mralex215 4d ago
It is just new notch in RDB - Resume Driven Bullshit.
5
u/Gargle-Loaf-Spunk 4d ago
Agentic Agile Xtreme Scrum meeting at 9am buddy
6
u/geofabnz 4d 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 4d 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 4d 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 4d 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! 4d 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 4d 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
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/DoOmXx_ 3d ago
it's real but read-only is where i'd draw the line for now, letting it plan a terraform change is fine, letting it apply is not
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 1d 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.
1
u/Plane-Profession8006 4h ago
For me that means centralized ephemeral runners that run agentic workflows. Same as your CI runners just a different purpose and guardrails.
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
u/[deleted] 4d ago
[removed] — view removed comment