惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
AWS News Blog
AWS News Blog
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
F
Full Disclosure
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
A
About on SuperTechFans
J
Java Code Geeks
Jina AI
Jina AI
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
美团技术团队
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Latest news
Latest news
Vercel News
Vercel News
博客园 - 【当耐特】
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
V
Vulnerabilities – Threatpost
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
D
Docker
Microsoft Security Blog
Microsoft Security Blog
博客园_首页
S
Securelist
WordPress大学
WordPress大学
S
Secure Thoughts
博客园 - 聂微东
Cloudbric
Cloudbric
Help Net Security
Help Net Security
腾讯CDC
T
Threat Research - Cisco Blogs
T
Tor Project blog
L
LINUX DO - 热门话题
Project Zero
Project Zero
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
N
Netflix TechBlog - Medium
小众软件
小众软件
Cyberwarzone
Cyberwarzone
量子位
MyScale Blog
MyScale Blog
W
WeLiveSecurity
MongoDB | Blog
MongoDB | Blog
I
InfoQ
M
MIT News - Artificial intelligence

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Why I Moved from Terraform to a Stateless IaC Platform and What I Learned
Matt · 2026-05-01 · via DEV Community

I was a Terraform believer.

I had written hundreds of .tf files. I had debugged state corruption at 2 AM. I had carefully designed remote backends in S3 with DynamoDB locking so my team wouldn't step on each other. I had given internal talks about Terraform best practices. If you had asked me two years ago whether I'd ever move away from it, I would have laughed.

And then I started using MechCloud — a stateless Infrastructure-as-Code platform that treats live cloud APIs as the source of truth instead of a state file — and I had to rethink a lot of things I took for granted.

This is not a hit piece on Terraform. It is still an exceptional tool with a massive ecosystem. But the experience of working without a state file made me realise how much mental overhead I had quietly normalised over the years, without even questioning it.

Here is what I learned.


What "stateless" actually means

Before I explain why I moved, I need to clarify what "stateless IaC" means — because it sounds paradoxical at first.

Every IaC tool needs to know what currently exists in your cloud account before it can figure out what changes to make. Terraform solves this by maintaining a state file — a local record of every resource it has created. When you run terraform plan, it compares your .tf files against this state file, then diffs the state file against the real cloud.

A stateless platform eliminates the state file entirely. Instead, it queries live cloud APIs at runtime to discover what actually exists. No cached record. No reconciliation between "what Terraform thinks exists" and "what actually exists." The cloud itself is the source of truth.

MechCloud does this by querying your AWS account directly — reading the real state of your resources on every run — and then using your YAML templates to determine what changes are needed.

Simple idea. Profound implications.


The problems I didn't know I had

1. State drift was a constant background anxiety

With Terraform, state drift happens whenever someone changes infrastructure outside of Terraform — through the AWS Console, a CLI command, a Lambda function, a deployment pipeline you didn't write. Terraform has no idea these changes happened. Its state file is now lying to you.

The result? terraform plan gives you a diff that is subtly wrong. You apply it, and either something breaks, or Terraform "fixes" the manual change and rolls it back, or you get a conflict error and spend an hour debugging.

I had built habits around this: periodic terraform refresh, strict policies against console access, "import" commands for resources added manually. These were all reasonable coping mechanisms. But they were all coping mechanisms for a problem that, I now realise, was architectural.

When the live cloud API is your source of truth, drift simply doesn't exist as a concept. What is in your cloud account is the truth. Every plan is based on reality, not on a cached snapshot of reality.

2. State file management was its own infrastructure problem

Where do you store the state file? S3 — but then you need bucket versioning, encryption, access policies, and lifecycle rules. You need a DynamoDB table for locking. You need IAM roles that can access both. You need to make sure the S3 bucket itself is in a region you trust.

I once spent a full day debugging a production incident that traced back to state file corruption caused by two CI/CD pipelines running terraform apply simultaneously, despite DynamoDB locking. The lock had been acquired, but a network timeout caused one pipeline to retry without properly releasing it first.

State file management is real infrastructure that you have to design, secure, maintain, and occasionally rescue. With a stateless platform, this problem category simply vanishes.

3. Onboarding a new team member was always an event

Any time a new DevOps engineer joined my team, their first week inevitably included:

  • Getting access to the S3 backend
  • Pulling the state file
  • Running terraform init with the right backend config
  • Discovering that someone had checked in a local .tfstate file by accident
  • Learning which modules were "safe" to plan vs. which ones would cause a cascade

With a stateless platform, there is nothing to initialise and no state file to synchronise. The new team member connects to the cloud account, and what they see in the YAML templates is exactly what they'll get. The learning curve shifts from "how does this tool manage state" to "what does this infrastructure actually do" — which is a much better thing to be learning.

4. Importing existing resources was painful

If you have resources that weren't created by Terraform — which in any real company, you always do — you had to use terraform import. This required you to:

  1. Write the resource configuration by hand
  2. Know the exact resource ID in AWS
  3. Run terraform import <resource> <id>
  4. Verify that the state now matches reality
  5. Run terraform plan and hope it shows no diff

This was tedious and error-prone. One mismatched attribute and your next terraform apply would attempt to modify or destroy a production resource.

A stateless platform that queries live APIs can discover your existing resources automatically. There is no import step. What exists in AWS is what the platform works with.


What the transition actually looked like

I want to be honest here: the transition was not instant, and it required a mindset shift.

The biggest adjustment was moving from HCL (Terraform's language) to YAML templates. MechCloud uses a hierarchical YAML structure where resource nesting mirrors API dependency. For example, a subnet lives under a VPC in the template because it depends on the VPC ID — and that hierarchy makes the dependency explicit and readable.

Here is a simplified example of what a VPC with a subnet looks like in MechCloud's YAML template format:

resources:
  - type: aws_ec2_vpc
    name: vpc1
    props:
      cidr_block: "10.0.0.0/16"
      enable_dns_support: true
      enable_dns_hostnames: true
    resources:
      - type: aws_ec2_subnet
        name: subnet1
        props:
          cidr_block: "10.0.1.0/24"

Enter fullscreen mode Exit fullscreen mode

The subnet is nested under the VPC in the resources block. MechCloud automatically injects the VPC ID into the subnet creation call. You never manually write vpc_id = aws_vpc.main.id the way you would in Terraform.

At first this felt like "magic I can't see." Over time it felt like "removing boilerplate I was always writing."

The other adjustment was psychological. When you've relied on terraform plan to show you a diff, working without a state file means trusting that the platform is accurately reading your live infrastructure. That trust took a few weeks to build — mostly through watching it work correctly, repeatedly, on real accounts.


What I won't go back to

State file management. Not for a second.

The cognitive overhead of ensuring state is accurate, backed up, locked, and shared correctly across a team adds up quietly over months and years. You stop noticing it the way you stop noticing background noise — until it's gone, and you realise how much quieter everything is.

Beyond that: the ability to discover existing infrastructure without import commands, the confidence that every plan reflects actual cloud state, and the simpler onboarding story are things I now consider table stakes.


Who should consider making this move

This approach is particularly compelling if:

  • Your team has experienced state drift, state corruption, or state locking incidents
  • You are managing infrastructure across AWS, Azure, and GCP and want a unified interface
  • You want to reduce the infrastructure-for-your-infrastructure overhead
  • You are exploring AI-assisted infrastructure provisioning (MechCloud has a PromptOps layer that lets you describe infrastructure in natural language)
  • You are starting a new project and can design without Terraform lock-in

It is less immediately compelling if:

  • You have a large existing Terraform codebase with dozens of modules (migration effort is real)
  • You depend on niche Terraform providers for non-cloud services
  • Your team is deeply invested in the HCL ecosystem and tooling

What I learned about learning

This experience taught me something beyond the technical.

I had spent years becoming expert at Terraform's way of solving a problem — so much so that I had stopped questioning whether the problem itself was necessary. State files felt like a law of nature, like something IaC simply had to have. It took using a tool that eliminated them entirely to realise they were a design choice, not a requirement.

That's the kind of learning that doesn't show up on a resume but changes how you evaluate tools for the rest of your career.


What's next

In my next post, I'll walk through a hands-on tutorial: provisioning a complete AWS VPC setup with MechCloud's YAML templates — covering the resource hierarchy, the ref: syntax for cross-resource references, and how it compares to writing the equivalent in Terraform HCL.