Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Ship It Conversations: The AI Agent That Ran Terraform Apply, With Davlet Dzhakishev of Cloudgeni on Read-Only Cloud Access, Sandboxes Beyond Docker, Agentic PR Reviews, the Real Cost of Running Agents, FinOps for AI, and Permissions Over Prompts
Transcript
- 0:00When you valet your car, you don't hand over
- 0:03your key ring. You hand over the valet key. It
- 0:07starts the car, but it won't open the trunk.
- 0:10That's how an AI agent should get into your cloud.
- 0:14My guest today builds AI agents for cloud infrastructure.
- 0:19Early on, one of his agents hit a snag on a simple
- 0:23Terraform change and decided the fix was to run
- 0:27apply on staging. Resources got recreated. He
- 0:32calls that his wake-up call. Now his agents
- 0:37start with read-only access. Every change goes
- 0:41through a PR and trust grows from there. I'm
- 0:45Brian Teller from Teller's Tech and this is Ship It Weekly.
- 1:06Welcome back to Ship It Weekly, where
- 1:08I filter the noise and focus on what matters.
- 1:11when you are the one running infrastructure and
- 1:14owning reliability. Most weeks, it's a quick
- 1:17DevOps, SRE, platform, cloud, and security news
- 1:22recap. In between those, I do conversation episodes
- 1:26with people building and operating these systems.
- 1:30Ship It Weekly turns one this month. To celebrate
- 1:34through mid-December, you are getting two conversations
- 1:37a week, Mondays and Wednesdays, with the news every Friday.
- 1:42Then we're back to our usual rhythm. Today, I'm
- 1:46joined by Davlet, CEO and co-founder of Cloudgeni,
- 1:50which builds AI agents for cloud infrastructure.
- 1:54Davlet got into this after grinding through SOC
- 1:582 and ISO compliance prep, mostly by hand, and
- 2:02asking what it would take for agents to fix those
- 2:05problems reliably without making things worse.
- 2:09We talk about the Terraform mistake that made
- 2:12guardrails the first problem to solve. Using
- 2:15agents to review infrastructure PRs against your
- 2:18own standards. Why running your own agents can
- 2:23cost a lot more than your AI subscription suggests.
- 2:27And where a platform team should start without
- 2:30building a monster. All right, let's jump in.
- 2:38Davlet, thank you for joining me. Yeah, thanks,
- 2:41Brian, for inviting us to your studio. Great
- 2:44to be here. I appreciate it. So I guess let's
- 2:47start with compliance, or at least like the risky
- 2:51parts. So everyone wants to do AI agents, right?
- 2:56That's the big thing right now with cloud and
- 2:58infrastructure work. What needs to be solved
- 3:01before that's a good idea? Yeah, that's a great
- 3:03question, Brian. And this is basically the question
- 3:07I had in my mind two years ago out of another
- 3:12project I was working before that where I had
- 3:15to go through, you know, still pretty much manual
- 3:18process of going through compliance requirements
- 3:21such as SOC 2 and ISO 27001 to be able to prepare
- 3:27our company to service a Fortune 500 customer.
- 3:31And even though some... the AI models were already
- 3:35available there, GPT 3.5 and similar, they still
- 3:41haven't been sufficient enough to help you in
- 3:44a meaningful way. So that's where my question
- 3:47popped in my mind. What do we need to build?
- 3:50What kind of harness or agentic workflows, guardrails,
- 3:56what do we need to help the agents, first of
- 4:00all, to be able to identify and solve compliance
- 4:03problems and solve them reliably. And in the
- 4:06process of using agents, that we actually don't
- 4:08make things worse as well. And this is the second
- 4:11part that was interesting as well, because as
- 4:13we started using agents more and more, they became
- 4:18generally more useful, but they also became another
- 4:21layer of potential vulnerabilities and breaches.
- 4:26So this is, it kind of brought both solution,
- 4:30but also... new set of problems to have to think
- 4:33about and solve it. So concretely, what was the
- 4:39first thing that we had in mind? Okay, let's
- 4:41use all the data that we already have. There
- 4:45is a lot of tools, open source commercial tools
- 4:47that already scan all kinds of your assets from
- 4:52infrastructure to your application code to maybe
- 4:54organizational policies for security and compliance
- 4:59findings. Everyone has them, thousands of alerts
- 5:02in their hyperscalers and dashboards everywhere.
- 5:07What do we do with those, right? Takes a lot
- 5:09of time to plan for, takes a lot of time to go
- 5:12through the backlog. And this was our thought.
- 5:14Okay, how about we build an agentic workflow that
- 5:17will use this deterministic data and understanding
- 5:20of your... code, of your infrastructure as a
- 5:24code, of your policies, and find the correct
- 5:27solution to those findings. And we'll bring it
- 5:30to you in the best possible way. And this goal
- 5:34of finding the solution brought us finding out,
- 5:39okay, how can we build those agents in a way
- 5:42that you can use them in production? Because
- 5:45we also encountered a lot of problems while doing
- 5:48that. Yeah, some real stories. Luckily, our agents
- 5:53didn't cause any production problems because
- 5:56we were careful and we were thinking about in
- 5:59advance before, you know, you had those headlines
- 6:01where people were deleting their database and
- 6:04things like that. But we had a similar incident
- 6:06where an agent in the agentic mode, and that
- 6:11is important to note, right? Because there is
- 6:14different ways you can use AI agents. You can
- 6:16use them as just helpers or just... You know,
- 6:19you ask a question, you get the code back, or
- 6:20you actually allow them to do the whole work
- 6:24in iterative loop, right, until it actually completes
- 6:27the goal that you set to it. And this is what
- 6:30we call fully, you know, or not fully, but at
- 6:33least autonomous mode or agentic mode. And in
- 6:36this sort of mode, there is a higher risk that
- 6:39things can go sideways. And so one example of
- 6:42what happened is that agent was solving, you
- 6:46know, simple... Simple Terraform problem, right?
- 6:49Updating Terraform to update some environments.
- 6:52Things didn't work exactly like it was supposed
- 6:55to. And they decided that, okay, maybe applying
- 6:58the changes would be a good idea, right? And
- 7:02that was, you know, two years ago when we were
- 7:04still early on on the guardrails. So it went
- 7:07on and applied some changes on staging environment
- 7:11that led to some resources being recreated, because naturally
- 7:16apply can be destructive, right? So this was
- 7:19the sort of wake-up call for me, where I understood,
- 7:23okay, this is the more important problem that
- 7:25we need to solve first before we can actually
- 7:28allow agents to touch our infrastructure. And
- 7:30so that's where we changed our platform and started
- 7:33building all these guardrails on top of it as
- 7:36the first class citizens. So what kind of guardrails?
- 7:39Are we talking like OPA, Kyverno? Or are we talking
- 7:42like pre prompts? Are we talking validating output?
- 7:45What kind of guardrails do you have in place?
- 7:47All of it. And we have a good open source guide,
- 7:52infrastructure agents guide on GitHub that goes
- 7:55through all the levels. But basically there is
- 7:57around 13 or let's say 10 realistic levels that
- 8:02you need to think through when using or designing.
- 8:07Your system for agentic use, right? And it all
- 8:10starts with architecture, right? How do you architect
- 8:13actually the whole way of the system, the agentic
- 8:17system, right? And in those levels, you decide,
- 8:20okay, what kind of agents you're going to use
- 8:23and how do you want to orchestrate them? Where
- 8:26are you going to source them? Because that also
- 8:27brings certain kinds of questions about... you
- 8:32know, data privacy, you know, depending on where
- 8:34you source them. Then where do you get your tools,
- 8:37CLIs, skills? How do you actually enable agent
- 8:41to do those things that we want them to be able
- 8:45to do? How these agents run, right? Sandbox environments
- 8:48or running versus running on your desktop. Of
- 8:52course, you know, by definition, if you run it
- 8:55in sandbox, it's going to be safer. There is
- 8:58less likely that it will find some SSH file
- 9:02on your desktop to gain keys to your systems
- 9:05that you didn't intend to give, right? So these
- 9:07kind of problems at the, you know, that wouldn't
- 9:10be possible if you just run on sandbox environments.
- 9:13And then credential management, right? How do
- 9:16you actually provide it access to the things
- 9:19you wanted to have access, right? You know, if
- 9:22you want to solve with cloud infrastructure problems,
- 9:24how do you give it permissions, right? What kind
- 9:27of... Is it like a service principal? Are you
- 9:30creating a special user for it? And what kind
- 9:34of permissions you give it? And if you limit
- 9:36it, by definition, it might not be able to apply
- 9:40at all. Again, at every decision, you need to
- 9:44kind of think through what is intended here and
- 9:47can it do unintended. If you give it access to
- 9:50workflows on GitHub, it will be able to apply
- 9:54still. It will find some way to do things that
- 9:56you didn't maybe intend it to do. So at architectural
- 9:59level it shouldn't be possible even to do things
- 10:02you don't want it to do. And then of course, you
- 10:04know, what things you mentioned, policies and like
- 10:07OPA, and those are those are also important part
- 10:10of it. So it sounds like the foundational stuff
- 10:14that we've been talking about for years, even
- 10:16pre-AI, just making sure that's in place,
- 10:19time-bound access, least privilege. Yeah, yeah. Okay.
- 10:22And that's a fun part of it, right? I think this
- 10:25is where good engineering is becoming even more
- 10:29important. I can't remember who said it, but
- 10:32it was recently a notable quote that, you know,
- 10:36if you have a well-engineered system, right,
- 10:38with good access, you already have a process
- 10:41of onboarding junior engineers, right, where
- 10:43they start with little permissions and then you
- 10:46can grow from there as their autonomy increases,
- 10:51you know. Same principles can be applied to introducing
- 10:53a new teammate, right? In this case, it's AI.
- 10:56And of course, if you have not mature processes,
- 11:00then AI can make those things even worse. And
- 11:03I think, you know, the platform teams will probably
- 11:07suffer even more if they don't have a tight grip
- 11:10and control already on those kinds of systems.
- 11:14Do you think that agents should get direct cloud
- 11:18credentials or like in practice? If they are
- 11:21time-bound and least privileged? Yes. In practice you create
- 11:25a special service principal or whatever way
- 11:30that is designed for your cloud of choice, but
- 11:33you limit the access to read-only if you want
- 11:37to make sure that it doesn't change your infrastructure
- 11:41directly. It should be able to see it. And then
- 11:44your changes, the way how you suggest your changes,
- 11:47should go through your typical change management
- 11:49process, right? Through your Git repo, CI/CD pipelines,
- 11:53tests, build tests. But it is useful when agent
- 11:57understands and sees the data, right? What kind
- 12:01of context should that agent have? Yeah. So typically
- 12:05what we see works best is it needs a context
- 12:10of your, how your infrastructure is structured,
- 12:13right? The architecture, all the resources, all
- 12:16the dependencies between them. That is important
- 12:18information. Your infrastructure is a code, so
- 12:21then it can start mapping between what what is
- 12:24in the cloud and what is infrastructure as a
- 12:26code. There is also very, you know, you can build
- 12:28a lot of useful workflows around it, you know,
- 12:32drift detection, migrating from ClickOps to IaC
- 12:36is a very useful one. Observability data is very
- 12:40useful so that it can help you with finding problems
- 12:43or potentially alerting you. Security findings,
- 12:47right? Whether it comes from AWS Security Hub
- 12:50or Azure Defender or some third-party tools,
- 12:54it's good when we have some more deterministic
- 12:59or some tools that already scan you for security.
- 13:02So then agents have it in the context. And cost
- 13:06data is also useful if you are interested to
- 13:08understand how infrastructure looks like from
- 13:10the cost perspective and FinOps. Do you have
- 13:12a human in the loop? Is it only in that approval
- 13:14right before merge or do you have a human early
- 13:17on in the loop? What's your thoughts on that? Yeah.
- 13:19So the way we think about it is that humans kind
- 13:23of get into this kind of agentic systems in two
- 13:26places. In the beginning, when you need to set
- 13:29it up, right? This is where you kind of need to
- 13:32put some upfront effort to make sure, again, you
- 13:35know, correct credentials, current access, and setting
- 13:37up workflows. What, what do you want agents to
- 13:40do? What kind of things, right? Do you want it to
- 13:42do daily security checks and then creating patches
- 13:45for you? Or do you want to rather come in and
- 13:48ask it to do things as you wish on the need-by-need
- 13:53basis, right? So it's like sort of inception
- 13:55point. And then at the very end, after the agent's
- 13:59done all the useful work, that would be the reviewer
- 14:03role where you kind of need to verify the quality
- 14:07of the work and if it matches the intent you
- 14:09had. So are you using agents at all or are you
- 14:13finding customers using agents to help review
- 14:16Terraform or OpenTofu plans? And how does that
- 14:20work in practice? Absolutely. And this is an
- 14:23interesting thing because agents are also good
- 14:26at reviewing or sometimes even better than humans
- 14:28in some cases. And agents can review other agents'
- 14:32work. So in a way, we can use agents to help
- 14:35us to review work, right? Because it will be
- 14:37very tedious if we have to go through each line
- 14:40that produces pages. So as part of agentic work,
- 14:43we also offer automatic PR reviews, agentic PR
- 14:47reviews that review both agentic and human work
- 14:50the same way. And the benefit, you know, these
- 14:54agentic reviewers, they can have the same context
- 14:57that you already provided. So they understand
- 14:59how your infrastructure is structured, what are
- 15:02the, you know, what are your compliance issues
- 15:04so that it can, for example, notify you if you
- 15:10make a change. Maybe it's a good change from
- 15:14a security point of view, but it will block access
- 15:17of your applications to it. For example, if you
- 15:22put a private network, for example, around your
- 15:25key vault, you might risk losing access yourself.
- 15:29So then PR reviewer should not only find the
- 15:33obvious errors, but also this kind of operational
- 15:35impact. Am I going to have downtime or lose access
- 15:39or will this recreate? So the PR reviewers can
- 15:43have this knowledge if you give it the right
- 15:47context and set it up correctly. And you can
- 15:49also enrich it with your custom policies or your
- 15:53organizational policies. Even if you have some
- 15:56rules about styling or how your modules need
- 16:00to be structured, all this knowledge you can
- 16:02include. And then PR reviewers will help you
- 16:06to keep your infrastructure standardized. This
- 16:10is also one of the key findings and key features
- 16:15that were important for one of our enterprise
- 16:17customers, for example. What about drift? So
- 16:20I know we deal with drift a lot with IaC. Maybe
- 16:23not a lot. I guess it depends on the organization.
- 16:26But if you're dealing with drift, you maybe don't
- 16:28have the same context that you would for a PR
- 16:31review. So how does the agent deal with that?
- 16:33And how do you reconcile that agent doing that
- 16:37work on the drift? Or do you not have agents
- 16:39do drift work? Yeah, yeah. No, we do. So this
- 16:43was one of the problems that we saw in the beginning,
- 16:45right? We early on decided, okay, we don't want
- 16:48agents, for example, touch infra directly, right?
- 16:50Like this was for us a no-no. So how do we avoid
- 16:54it? How do we circumvent it? We want to create
- 16:57PRs and do changes to infra through CI/CD pipelines.
- 17:02But to be able to do that, you need to have no
- 17:05drift or minimal drift, right? You need to be
- 17:07able to trust your infrastructure as a code.
- 17:09So we built the whole workflow to be basically
- 17:11to detect drift and use, again, agents to reconcile
- 17:15everything that you have in your cloud back to
- 17:17your infrastructure as a code. Because, of course,
- 17:20the best way, you just have your infrastructure
- 17:23code and from it you create your cloud infrastructure
- 17:26and that's it. In reality, I have not... I haven't
- 17:32worked with an organization yet that would be
- 17:34able to do that, right? Unfortunately. So, and,
- 17:38you know, we work with great organizations and
- 17:40it's not that it's completely messed, but, you
- 17:42know, there's still some important changes in
- 17:44the cloud that you would not be able to just
- 17:46overwrite with apply as purists might want to
- 17:49do. So to account for real-world scenario, we
- 17:54build this scanner that would find these drifts
- 17:57and then use agents to help clean it up. And
- 18:00bring everything into infrastructure as a code
- 18:02to following your standards. So having that,
- 18:05if you have that kind of information, then dealing
- 18:08with drift is pretty simple. And you can build
- 18:11it yourself, this kind of logic as well. We've
- 18:14talked about drift. We've talked about the policy.
- 18:17What we haven't really touched on is the financial
- 18:19aspect of running agents in cloud. How do companies
- 18:22deal with the financial implications of running
- 18:25models? It's saving them time. It's maybe helping
- 18:28with velocity. But how do they manage that cost
- 18:31when it comes to running agentic workflows?
- 18:33Yeah, I think right now the conversations are
- 18:37pretty early, right? But they are starting to
- 18:39show up. Until now, I think the mandate was very
- 18:42simple. Just use tokens as much as possible.
- 18:45Let's play with this. You know, people don't
- 18:48know how to use it still. Let's not put any limitations.
- 18:51Let's just, you know, enable it at organization
- 18:55level. Unlimited usage oftentimes. And let's
- 18:59see what happens. So what happens is that, of
- 19:01course, you will end up in a situation where
- 19:04people use a lot, right? I think there was a
- 19:08new case where someone just built a non-work-related
- 19:11game and used maybe a few hundred thousand, or not a few, tens of thousands
- 19:18of dollars worth of tokens. Or other cases where
- 19:21the budget was used up within three months, the
- 19:23budget that was planned to be used for a year.
- 19:26And I think also the disconnect also comes from
- 19:29that we may be used to using AI from, you know,
- 19:34ChatGPT, from OpenAI, from Claude Code, through
- 19:38subscriptions, and they subsidize them a lot.
- 19:41So if you use, let's say, if you build your own
- 19:44agentic systems and you use tokens through API,
- 19:47you might see that you will have to pay 10, 20
- 19:52times more in real cost, you know, for the same
- 19:55capabilities. So this makes it, of course, challenging
- 19:59to invest into this kind of your own, building
- 20:02your own workflows. And this is also something
- 20:05that we, you know, we also offer subsidized in
- 20:09a way service right now, right? But for companies
- 20:13to be able to build, let's say, same capabilities
- 20:15internally, they want similar to Cloudgeni,
- 20:18they would have to pay 10 to 20 times more to
- 20:22enable the same things. So I think understanding,
- 20:25I think first question is understanding where
- 20:28the cost comes from, right? To be able to track
- 20:31it. Right now, there is no control, basically,
- 20:34right? There is no... And this also goes back
- 20:37to the security and policies part. There is no
- 20:40audits on the agentic usage, right? No one knows
- 20:45where is it used, what is it used for, what kind
- 20:49of prompts people are running. Are there maybe
- 20:52agentic... loops that just got stuck and using
- 20:55money for no reason, right? It's, it can easily
- 20:59just, you know, pull a non-existent API server
- 21:04every day and use tokens and no one will know.
- 21:06It is a completely new area, I think. And I think
- 21:10the FinOps for AI is going to be big, a big problem
- 21:14and big area to explore, just like we have in
- 21:16cloud infrastructure, right? Orphan resources,
- 21:18you know, orphaned agents that don't have purpose
- 21:21anymore. We will see a lot of that. So I think
- 21:23first step is actually having, if you're going
- 21:26to build systems, agentic systems internally,
- 21:29you need to design it with a way where you can
- 21:34audit and see both costs, but also, you know,
- 21:37the types of prompts and what they do and how
- 21:40they do and measure some impact as well. So
- 21:44this is what we also started realizing also with
- 21:48Cloudgeni. And we started, we pull out the
- 21:52foundation that, because in Cloudgeni, you
- 21:54already have audits and control. So we pull out
- 21:59this part and we made it open source, basically.
- 22:01The foundation, the agentic builder, so to speak,
- 22:05as an open source that anyone can use to build
- 22:08their own workflows. Could be infrastructure
- 22:11related, could be completely other area of business.
- 22:14How do you correlate the spend in the API calls
- 22:20for the agent versus the production output that
- 22:24you're getting from that? How do you correlate
- 22:26those two? Yeah, right now it is more vibes,
- 22:30I would say, than hard data, definitely. But
- 22:33we can see it already in our own case, for example,
- 22:38right? We are able to achieve quite a lot with
- 22:41extremely small engineering teams. We don't basically
- 22:46have a dedicated DevOps engineer. We run everything
- 22:50using our own product. And our engineering is
- 22:54also quite thin. So what we focus on rather is
- 22:58investing into those agentic workflows and automate
- 23:01more and more engineering that way. And from
- 23:05that point of view, it is still... cheaper or
- 23:09there's less cost than hiring a person. And it
- 23:13also less overhead in terms of knowledge sharing,
- 23:17in terms of alignment. We would want to scale
- 23:19though, definitely with more people as well,
- 23:21but it also puts a certain requirement on engineers
- 23:24to, instead of focusing on one-to-one work,
- 23:29rather than focusing on, again, building agentic
- 23:33capabilities and orchestrating agents to do their
- 23:36work, right? So this is what we are focusing
- 23:39on. And from that perspective, the economic impact
- 23:43is visible, right? But we are yet to see it on
- 23:46a larger scale, I would say, like in larger companies
- 23:49where it can be more difficult to do so, these
- 23:53kind of transformations. Okay, so given the cost
- 23:56aspect, given the guardrails, given the models,
- 24:00is there anything that you wouldn't trust an
- 24:02AI agent with yet that you think it's maybe
- 24:05not great at solving, maybe a person whether it
- 24:07doesn't have the context or just a person is
- 24:09better suited for solving it? Yeah, I still wouldn't
- 24:12trust it to run, to make changes directly in infrastructure,
- 24:14right? Like, unless I'm okay that this might, this
- 24:19might, this is a staging environment or test environment
- 24:22that is meant to, to be, right? And this is what
- 24:26we are trying to solve as well in some limited
- 24:29way. Can we let agent run, for example, our own
- 24:31infrastructure without our oversight? And we have
- 24:35internal experiments where we start looking into
- 24:39it. But when it comes to, let's say, customer
- 24:42data, privacy, losing data, losing access, where
- 24:48there is big consequences. I would still want
- 24:52to have some sort of guardrails before it, even
- 24:55if it's semi-autonomous, but I would want to
- 24:58have some deterministic blocks. For example,
- 25:01it could be as simple as deletion block on the
- 25:04resource group, for example, for production resources,
- 25:06right? So it wouldn't be possible to delete it
- 25:09without someone approving it, like a person,
- 25:13a human engineer. Yes, but putting termination
- 25:15protection on an instance as an example. At
- 25:19the API level. So even if the agent did try to
- 25:21run it, it couldn't without removing that protection.
- 25:24Yeah. So I think at some point, if you have enough
- 25:27of those guardrails and if you have sufficient
- 25:29enough checks where you prove, you know, error-proof
- 25:33your systems, basically, I do think there
- 25:37will come a moment and maybe not very far in
- 25:40the future where you would see fully autonomous
- 25:43agentic systems, right? Where no human actually
- 25:47looks at it. It will, you know, human will look
- 25:50at dashboard to see like, okay, everything is
- 25:52healthy. And this is what we're also building
- 25:57for, right? Starting from smaller scale. Yeah.
- 26:01Are you building like a risk scoring system where
- 26:03like, if I'm adding tags to a resource, like
- 26:07very low risk, right? I can probably let an agent
- 26:10do that. But if I'm modifying VPC route table,
- 26:14might not want an agent touching that without
- 26:16a human. Like, are you? scoring that and how
- 26:19do you score that like where we'd have a confidence
- 26:22level for an agent to be able to make those changes
- 26:24or not make those changes? Yeah, I think the way
- 26:28we do it, let's say in Cloudgeni, we built, we
- 26:30separated by workflows, right? Certain workflows
- 26:34are more okay to do automatic, like for example
- 26:37import. This is very safe action, there is no impact,
- 26:40right? So we just let agents do completely. Security
- 26:42and compliance patches, they're a little bit more
- 26:45you know, where you need more control, right?
- 26:47And this is where we put a little bit more guardrails
- 26:50and checks. So I think for now we do it sort
- 26:53of semi-manually. So for now it's up to a person,
- 26:57I think, to decide because even tagging could
- 26:59be quite important, right? Let's say someone...
- 27:03If it's FinOps related or something, yeah. ...doesn't
- 27:04want to mess it up as well. So for one team,
- 27:07it could be like, ah, that's no problem. For
- 27:09another team, it's like, no, no, we need to make
- 27:11sure it's right. So I think you kind of need
- 27:13this kind of flexibility. In that, for the future,
- 27:19for that future product, basically where we think
- 27:22agent will be able to run everything, we're sort
- 27:25of starting from the foundation of it. But of
- 27:28course, it will only be applied only to either
- 27:31non-production environments or let's say small
- 27:35startup environments, right? Where the impact
- 27:38is lower. And from there, we will just, yeah.
- 27:41If we know it's ephemeral, it doesn't really
- 27:43matter as much, right? Yeah. And there we just
- 27:46let agent go crazy and see where it breaks. And
- 27:49then we can build, okay, this is where it breaks.
- 27:53This is where it can cause problems. Let's build
- 27:55a wall around this so that it will not do it.
- 27:58Yeah, no, that makes sense. Okay, so if a cloud
- 28:02or platform team wanted to start experimenting
- 28:05with agents, where should they start without
- 28:07creating like a monster? If they're very new,
- 28:10they've used agents, maybe like they've used
- 28:12Cursor, they've used Claude locally, but they
- 28:14actually want to start using it in their IaC.
- 28:16They want to start using it in their PR workflows.
- 28:19Where should they start? Yeah. I can share how
- 28:22we see, for example, some of our customers start,
- 28:25right? There's different levels of adoption of
- 28:28AI in general, and that can also correlate to
- 28:29their willingness to adoption of it. All right.
- 28:33If, let's say, they come from a background where
- 28:35they just use it as an autocomplete or, you know,
- 28:38some ChatGPT interface, so they haven't done
- 28:40a lot of agentic, maybe safer way to adopt something
- 28:45more agentic would be PR reviews, right? You
- 28:48just enable connected to a couple of your environments,
- 28:51a couple of your repositories, and start getting
- 28:53reviews into your infrastructure's code, which
- 28:56you can still write yourself or use agents to
- 28:59help you. And that kind of builds trust. You
- 29:01can start to see, okay, where agents can help
- 29:04you, where there may be the limitations, where
- 29:07they need a little bit more context. And next
- 29:10step would be, well, now I can maybe let agents
- 29:13to write infrastructure as a code for me, right?
- 29:16Larger pieces of it, maybe larger refactorings.
- 29:19Maybe, okay, I need a new set of resources. Here
- 29:22is the template already. Agents are great at
- 29:26following templates and examples. So if you need
- 29:29a new setup, it will do it perfectly. And after
- 29:33that is comfortable, I would say is automating
- 29:36more and more work, right? Automating compliance
- 29:39part, automating FinOps, right? Using agent
- 29:42to finding orphan resources or so. This is where
- 29:45it becomes more. But I think, you know, I would
- 29:50say it's useful to tinker with it yourself, right?
- 29:54Try to kind of build some, some automations yourself.
- 29:57And this is why we also built OpenGeni because
- 29:59we, I thought, you know, you can skip a few steps
- 30:03and start building automations yourself. But I
- 30:06think very quickly, if one gets very serious
- 30:10about building agents, they will realize that
- 30:12there is quite a lot of moving parts, just like
- 30:15in anything else, right? In engineering. So if
- 30:19you want to get quick results faster, there are
- 30:22a few open source solutions, for example, for
- 30:23SRE, for different things, right? And we see
- 30:28Cloudgeni, for example, is one type of solution,
- 30:31like Cloud Ops Management where you can start
- 30:35managing your cloud using agents already without
- 30:37having to invest into understanding how agents
- 30:42should work and all the guardrails and all the
- 30:44complexities. But it is still useful to understand
- 30:47how agents work because then you will also be
- 30:49able to interact with systems like Cloudgeni
- 30:52in a much more efficient way, even if it doesn't
- 30:56require you to be an expert in it. Okay, so wrapping
- 31:00up, what about guardrails? Where do I start with
- 31:02that? First guardrail, our first three guardrails.
- 31:05I mean, 101, you know, run it in sandbox, right?
- 31:10Maybe inside Docker, which I still don't consider
- 31:13actually a proper sandbox because it still can
- 31:15get out of your... So ideally, maybe somewhere
- 31:19in the cloud, you know, run your agent in the
- 31:21cloud in sandbox, give it a limited set of permissions,
- 31:25right? To two things you wanted to have, let's
- 31:28say, read access to, you know... subscription
- 31:32on Azure or account on AWS, read-only. And then,
- 31:36you know, connect maybe one infrastructure as
- 31:38a code repo, only previous permission of PR,
- 31:43creating PRs, right? So this is enough to kind
- 31:47of say, hey, I can't do anything now. I can ask
- 31:50my agent, delete this resource and it will not
- 31:54interpret it. Even if it will interpret it in
- 31:56the wrong way, it can't do anything. But most
- 32:00likely it will just, it will understand, okay,
- 32:02I'm in a sandbox, I have only read access, and
- 32:04I can only create PRs. It will create PR where
- 32:08it will remove it from Terraform instead of deleting
- 32:12resource outright, or it will create a script
- 32:16for this. And then you will be able to review
- 32:19it. So very simple. No matter how you prompt
- 32:22it, you make a mistake in the prompt, there is
- 32:25no chance the agent will do a mistake there.
- 32:28Makes sense. Anything to leave our audience with?
- 32:32Any last thoughts? Yeah, I think the last thing,
- 32:36you know, just to touch up on the human moment
- 32:39as well. I think people are also, you know, there
- 32:43is a different sentiment we see when it comes
- 32:45to AI in engineering. And it also changed a lot
- 32:49as we saw them from skepticism to, oh, wow, this
- 32:52actually works. And now there's like, okay, there's
- 32:55some concern, I think, naturally. What I see
- 32:59instead is that I think especially platform and
- 33:02DevOps people and in general, good engineers,
- 33:04I think we are in a very important position right
- 33:07now. We can decide how AI is going to be adopted
- 33:10at a larger scale in organizations and our teams.
- 33:13And instead of, let's say, ignoring it or instead
- 33:16of avoiding it, what we can try to think of,
- 33:18okay, how can we adopt it in a way that is actually
- 33:21useful, that is safe, that is cost efficient,
- 33:23that benefits us, our organization, our time.
- 33:27How can we actually make it useful? And I think
- 33:29if we kind of approach it with that set of mindset,
- 33:33we can find new kind of fun with it as well.
- 33:36Because it's actually, you know, it is still
- 33:38building systems, but it's maybe a little bit
- 33:40different kind of systems, right? Maybe not what
- 33:43we're used to, but it is still, you know, a lot
- 33:46of thinking that requires. It's not just a mindless
- 33:48vibe coding that many people maybe think of when
- 33:52they hear AI. If you go deep enough, there is
- 33:56a lot of technical challenges, and they need
- 34:00to be solved today before we see more outages,
- 34:05problems, and costs and impacts on people. So
- 34:09I think, yeah, that's what I would leave people.
- 34:12Be curious. Try to figure out, okay, what can
- 34:16I do with this, and how can I use it, and what's
- 34:19required from me to enable it at its full capacity.
- 34:23I think that will be fun. Yeah, well said. Where
- 34:26can people find out more about you and Cloudgeni?
- 34:29So I'm on LinkedIn, Davlet Dzhakishev. It's
- 34:33a hard name, but maybe people can read it. It's
- 34:37a cloud, Cloudgeni.ai, our commercial product. OpenGeni.ai
- 34:42is the open source, MIT-licensed foundation
- 34:46of it. And yeah, I think on LinkedIn is the best.
- 34:50I have X and other stuff, but it's not very...
- 34:54big yet. Give me a follow if you want to help.
- 34:58It's Davlet Cloudgeni. So yeah. Awesome. I'll put links
- 35:02for all those in the show notes as well. Davlet,
- 35:04thank you so much for coming on. Really appreciate
- 35:06your time. Awesome. It was great chatting with
- 35:08you, Brian. Great conversation. Thank you. That
- 35:12was my conversation with Davlet from Cloudgeni.
- 35:15The biggest takeaway for me is that a safe agent
- 35:18is mostly a permissions problem, not a prompting
- 35:23problem. After that Terraform apply, his fix
- 35:26wasn't a better prompt. It was guardrails at
- 35:30the architecture level. So the agent can't do
- 35:33whatever you don't want, however you word the
- 35:36request. His starter kit is simple. Run the agent
- 35:40in a real sandbox, ideally in the cloud. In his
- 35:44book, Docker doesn't count. Give it read-only
- 35:48cloud access, one IaC repo, and... permission
- 35:52to open PRs. Ask it to delete a resource, and
- 35:57the worst it can do is open a PR. That's the
- 36:01valet key. His on-ramp is agentic PR reviews
- 36:05first, then agents writing IaC from your templates,
- 36:09then automation. And a good reviewer catches
- 36:14more than typos. His example was a private network
- 36:18around a key vault. Great for security, until
- 36:23your own apps lose access. On cost, Davlet points
- 36:27out that AI subscriptions are heavily subsidized
- 36:31and running your own agents on API tokens can
- 36:35cost 10 to 20 times more. He thinks FinOps for
- 36:39AI is going to be big, orphaned agents and all.
- 36:42You can't manage what you can't audit. You can
- 36:46find Davlet on LinkedIn and X, plus Cloudgeni,
- 36:50OpenGeni, and his Infrastructure Agents Guide
- 36:53on GitHub through the links in the show notes.
- 36:56Follow or subscribe to Ship It Weekly wherever
- 36:59you listen and find previous episodes at shipitweekly.fm.
- 37:03Thanks for listening and I'll see you Friday
- 37:07for the news.