I had a grand vision: to build the ultimate DRY IaC factory using Backstage and Terragrunt. Then I actually tried to build the proof-of-concept... and hit a wall. My journey turned into an unexpected post-mortem on the real costs of self-hosting Backstage and a hard lesson in the "build vs. buy" dilemma for developer portals. In my new article, I'm sharing the story, the technical blueprint that still holds up, and the pragmatic pivot that came from my "failure."I had a grand vision: to build the ultimate DRY IaC factory using Backstage and Terragrunt. Then I actually tried to build the proof-of-concept... and hit a wall. My journey turned into an unexpected post-mortem on the real costs of self-hosting Backstage and a hard lesson in the "build vs. buy" dilemma for developer portals. In my new article, I'm sharing the story, the technical blueprint that still holds up, and the pragmatic pivot that came from my "failure."

I Failed to Build an IaC Factory with Backstage: Here's Why

An Elegant, Automated Infrastructure Factory

Every Platform Engineer has a dream: to build a perfectly working machine where developers can simply create the infrastructure they need without causing any trouble or urgent work for the platform team. This infrastructure should comply with security policies, be consistent, and be observable.

\ My initial goal was to build this dream. I wanted to create a Proof of Concept (PoC) of such a platform, document my findings in an article, and share it with a public audience. I wanted to learn a modern open-source project called Backstage because it seemed like a well-documented solution that would be straightforward to try.

\ The premise was an elegant architecture to solve the “WET” (Write Everything Twice) problem. Many organizations, as their teams grow, struggle with challenges as the idea of IaC (Infrastructure as Code) degrades into a mess of duplicated Terraform modules. This is a situation where a simple change requires a manual copy-paste approach, carrying a high possibility of making an error.

\ My solution was a marriage of Developer Experience and Platform Engineering, combining two key parts:

  • The Portal: A simple UI for developers to request infrastructure, like S3 buckets or RDS instances.
  • The IaC Orchestration: An automated backend driven by Terragrunt and managed by the Portal.

\ Here is what it was supposed to look like:

Then, I tried to build it. And that's when the article I intended to write died, and this one was born.

Backstage is a Framework, Not a Product

My plan was scoped with three main goals:

  • Get a basic Backstage instance running on my local
  • Connect it to a Postgres database
  • Build a simple Scaffolder template.

\ But this "simple" plan turned out to be incredibly complicated. Every small step had a dozen other tricky steps hidden inside it. Even before writing a single line of a Scaffolder template, I had to debug the Node.js backend, wrestle with authentication providers, manage building a Docker Container, and get Backstage itself running.

\ I stopped. The article I wanted to write was about the synergy between a developer portal and Terragrunt. Instead, I found myself on a long and frustrating detour to becoming a full-time Backstage administrator.

\ Backstage has a lot of promise. It can be a single, central hub for all of a company's engineering tools, and you can customize it to do anything. But the implementation is a full software project that requires a dedicated team of engineers with skills in React, TypeScript, and Node.js. Its Total Cost of Ownership (TCO) is not the license fee (it's free), but the significant and ongoing investment in dedicated engineering talent.

Why Terragrunt Still Wins

Even though the Portal part didn't work, the automated backend design is still the right approach and is more crucial than ever. The complexity of the portal does not invalidate the need for a DRY orchestration layer.

\ Regardless of whether requests come from a homegrown Backstage instance, a managed IDP, or even a CI/CD job, Terragrunt is the key to solving the WET problem and ensuring long-term maintainability.

\ The Key Terragrunt Patterns:

  • DRY Configuration: Define common settings (like backend state, provider versions, and default tags) once in a root terragrunt.hcl file. Child configurations inherit these settings, eliminating code duplication.
  • Automated State Management: Terragrunt can automatically create and configure the remote state backend (e.g., an S3 bucket and DynamoDB table) for each module, ensuring state files are isolated and managed correctly without manual intervention.
  • Immutable, Versioned Modules: The factory model separates reusable Terraform modules (the "blueprints") from the live Terragrunt configurations (the "instantiations"). This allows you to version your modules and roll out updates progressively by simply changing a ref tag.

\ Here’s a glimpse of the elegance. Instead of a 100-line .tf file, the output of the automation is this small, declarative terragrunt.hcl file:

# terragrunt.hcl for a specific service's RDS database include "root" { path = find_in_parent_folders() } terraform { source = "git::ssh://[email protected]/your-org/terraform-modules.git//aws/rds?ref=v1.2.1" } inputs = { instance_class = "db.t3.micro" allocated_storage = 20 db_name = "my-app-database" environment = "staging" }

\ This is the fundamental trade-off: A template generating raw .tf files is faster for Day 1, but creates a nightmare of maintenance debt on Day 2. The Terragrunt approach creates a contract, not a copy. An update to the central rds module to version v1.2.2 can be rolled out across hundreds of services in a controlled, automated fashion using terragrunt run --all. That is the power of a true factory.

Conclusion

I set out to build a factory and instead discovered the high cost of building my own tooling. The experience wasn't a failure, but a refinement of the blueprint. The core principles of DRY IaC and central orchestration with Terragrunt are more critical than ever. However, the path to a developer-friendly frontend is not one-size-fits-all.

\ Before you commit to building your developer portal from the ground up with a powerful framework like Backstage, take a hard look at the total cost of ownership. The most elegant architecture is useless if it never gets built. Sometimes, the most pragmatic solution is to buy the storefront and focus your energy on perfecting the factory floor.


Resources

  • Backstage: Official Documentation - The open-source framework for building developer portals.
  • Terragrunt: Official Website - A thin wrapper for Terraform that provides extra tools for keeping your configurations DRY.

\

Market Opportunity
Grand Base Logo
Grand Base Price(GRAND)
$0.298
$0.298$0.298
0.00%
USD
Grand Base (GRAND) Live Price Chart
Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact [email protected] for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Cronos (CRO) Flatlines Despite Altcoin Season, Analyst Explains Why

Cronos (CRO) Flatlines Despite Altcoin Season, Analyst Explains Why

According to crypto market analyst CoinBaron, Cronos (CRO) has underperformed during the current altcoin season, even as tokens such as Dogecoin (DOGE) and Shiba Inu (SHIB) posted double-digit gains. While most altcoins have outperformed Bitcoin (BTC) in the last 90 days, CRO has stalled after a strong rally earlier this year. The token is down […] The post Cronos (CRO) Flatlines Despite Altcoin Season, Analyst Explains Why appeared first on CoinChapter.
Share
Coinstats2025/09/18 05:02
Sharjah’s industrial real estate deals doubled last year

Sharjah’s industrial real estate deals doubled last year

Industrial real estate deals in Sharjah nearly doubled year on year in 2025, driven by growing demand for integrated complexes and multi-use warehouses, a senior
Share
Agbi2026/01/26 04:26
BetFury is at SBC Summit Lisbon 2025: Affiliate Growth in Focus

BetFury is at SBC Summit Lisbon 2025: Affiliate Growth in Focus

The post BetFury is at SBC Summit Lisbon 2025: Affiliate Growth in Focus appeared on BitcoinEthereumNews.com. Press Releases are sponsored content and not a part of Finbold’s editorial content. For a full disclaimer, please . Crypto assets/products can be highly risky. Never invest unless you’re prepared to lose all the money you invest. Curacao, Curacao, September 17th, 2025, Chainwire BetFury steps onto the stage of SBC Summit Lisbon 2025 — one of the key gatherings in the iGaming calendar. From 16 to 18 September, the platform showcases its brand strength, deepens affiliate connections, and outlines its plans for global expansion. BetFury continues to play a role in the evolving crypto and iGaming partnership landscape. BetFury’s Participation at SBC Summit The SBC Summit gathers over 25,000 delegates, including 6,000+ affiliates — the largest concentration of affiliate professionals in iGaming. For BetFury, this isn’t just visibility, it’s a strategic chance to present its Affiliate Program to the right audience. Face-to-face meetings, dedicated networking zones, and affiliate-focused sessions make Lisbon the ideal ground to build new partnerships and strengthen existing ones. BetFury Meets Affiliate Leaders at its Massive Stand BetFury arrives at the summit with a massive stand placed right in the center of the Affiliate zone. Designed as a true meeting hub, the stand combines large LED screens, a sleek interior, and the best coffee at the event — but its core mission goes far beyond style. Here, BetFury’s team welcomes partners and affiliates to discuss tailored collaborations, explore growth opportunities across multiple GEOs, and expand its global Affiliate Program. To make the experience even more engaging, the stand also hosts: Affiliate Lottery — a branded drum filled with exclusive offers and personalized deals for affiliates. Merch Kits — premium giveaways to boost brand recognition and leave visitors with a lasting conference memory. Besides, at SBC Summit Lisbon, attendees have a chance to meet the BetFury team along…
Share
BitcoinEthereumNews2025/09/18 01:20