VOOZH about

URL: https://thenewstack.io/spacelift-ai-infrastructure-code/

⇱ AI can write your infrastructure code. There's a reason most teams won't let it. - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2026-03-20 13:18:14
AI can write your infrastructure code. There's a reason most teams won't let it.
podcast,video,
AI Agents / AI Engineering / AI Infrastructure

AI can write your infrastructure code. There’s a reason most teams won’t let it.

Spacelift co-founder Marcin Wyszynski on why AI-generated infrastructure code creates new problems -- and how guardrails can solve them.
Mar 20th, 2026 1:18pm by Frederic Lardinois
👁 Featued image for: AI can write your infrastructure code. There’s a reason most teams won’t let it.

For this episode of The New Stack Agents, I sat down with Marcin Wyszynski, the technical co-founder of Spacelift and co-founder of OpenTofu, to talk about how AI is reshaping infrastructure as code (IaC).

Wyszynski, a former SRE at Google and Facebook, says he built Spacelift because IaC tooling like Terraform worked great for solo operators but broke down the moment teams got involved. After HashiCorp changed the Terraform license in 2023, he co-founded OpenTofu as a Linux Foundation-backed fork. 

But the shift Wyszynski is focused on now isn’t so much focused on licensing but what’s next in IaC and platform engineering in this age of rapidly evolving AI tools. 

Traditionally, IaC tooling assumed that the person writing the code understood what it did, but that’s changing. 

The Portuguese phrase book

On a recent customer discovery tour, Wyszynski tells The New Stack, the message he got was unanimous. Nobody writes HCL – the HashiCorp Configuration Language that’s at the core of Terraform and OpenTofu — by hand anymore. AI coding tools handle it now, and the learning curve for infrastructure configuration has collapsed.

But there’s a catch, Wyszynski argues. He illustrates this with a story about buying a Portuguese phrase book before a vacation in Portugal. Phrasebook in hand, you can walk up to a local and ask a question in perfect Portuguese. The problem is that the local answers in equally perfect Portuguese.

“He understood our question, but we have no way of understanding his answer,” Wyszynski says.

For infrastructure, he argues, that comprehension gap is dangerous. A bad application deploy can usually be rolled back, but a bad infrastructure change can destroy a production database. Yet, customers are actively pushing for democratized access to infrastructure provisioning as software development has sped up. ButdData scientists shouldn’t have to file a Jira ticket and wait two weeks for a DevOps team to spin up the servers they need.

The fine line between ‘stupid’ and ‘ceremonial’

Before AI entered the picture, infrastructure teams had two options, Wyszynski says. One was what he calls “stupid”: clicking around in a cloud console with no record. The other was the full IaC ‘ceremony:’ you write your code, open a PR, get a review, pass policy checks, and deploy. That takes a while and costs time.

“If all you have is a choice between stupid and ceremonial, if all you have is a hammer, everything looks like a ceremonial problem,” Wyszynski says. The result, he adds, is that infrastructure teams are now moving much slower than application teams, and that’s creating a backlog.

Spacelift’s answer is a product called Intent. Rather than having an LLM write configuration code that then runs through the standard pipeline, Intent has the LLM query cloud provider schemas directly and create, update, or delete resources on the fly in close to real time. When a resource needs to move to production, there’s a one-click path to generate full IaC code.

What’s important here is that the guardrails are deterministic — not just other LLM calls. Spacelift injects Open Policy Agent policies as middleware that keeps an eye on what the LLM can provision. On top of that sits Spacelift Intelligence, which launched this March, a context layer that gives the LLM awareness of an organization’s existing projects, reusable modules, and enforced policies. 

Balancing speed and control

The core question every platform team is wrestling with now, Wyszynski says, is how to balance speed and control. Some customers want engineers to experiment freely in throwaway AWS accounts and then import the results into Terraform for production. Others want every change to pass through code review. Both are valid, he believes, and both are responses to the same underlying tension.

Spacelift itself eats its own dog food, Wyszynski says. The company’s teams define its infrastructure with OpenTofu but deploy its applications using AWS CloudFormation, because CloudFormation can roll back a deployment atomically if containers start dying.

Wyszynski argues this pragmatism is important, especially when it comes to trusting LLMs with production infrastructure. The enterprise objection is always that LLMs aren’t deterministic, so you can’t trust them.

“Humans are non-deterministic as well,” he says. We’ve built guardrails for people for decades, he argues, and the same logic applies to LLMs. “We got used to the fact that humans need guardrails. There’s nothing new conceptually in having LLMs require guardrails as well.”

TRENDING STORIES
Before joining The New Stack as its senior editor for AI, Frederic was the enterprise editor at TechCrunch, where he covered everything from the rise of the cloud and the earliest days of Kubernetes to the advent of quantum computing....
Read more from Frederic Lardinois
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Spacelift.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.