Platform Engineering

Building a Self-Service Internal Developer Platform (IDP) with Terraform and Backstage

Published December 2, 2025 • 15 min read

Introduction: The Rise of Platform Engineering

In the fast-paced world of software delivery, the friction between Development (Dev) and Operations (Ops) is a persistent bottleneck. Developers need resources—databases, queues, test environments—instantly. Operations teams, prioritizing stability and governance, often act as gatekeepers, managing these requests via slow ticketing systems.

This misalignment drives the emergence of Platform Engineering, a discipline focused on building Internal Developer Platforms (IDPs) that enable developer self-service while enforcing organizational standards. HostingX IL is at the forefront of this shift in the Israeli market, helping companies architect IDPs that empower developers without sacrificing control.

According to Gartner, by 2026, 80% of software engineering organizations will establish platform teams as internal providers of reusable services, components, and tools for application delivery. The era of "you build it, you run it" is evolving into "we provide the platform, you build on it."

The Architecture of a Modern IDP

A robust IDP is not a single tool but a layered ecosystem designed to abstract complexity while maintaining governance:

The Four-Layer IDP Architecture:
  1. Developer Portal Layer: The user-facing interface, typically built on Backstage (open-source framework by Spotify). This serves as the "storefront" for infrastructure, providing service catalogs, documentation, and self-service workflows.
  2. Orchestration Layer: CI/CD systems (GitHub Actions, Jenkins, GitLab CI) that execute the automation workflows triggered from the portal.
  3. Infrastructure Engine: Terraform performs the actual provisioning, translating high-level requests into cloud API calls.
  4. Observability & Governance Layer: Monitoring (Datadog, Prometheus), cost tracking (Infracost), and security scanning (Checkov) provide continuous feedback.

HostingX IL advocates for an architecture where Backstage acts as the interface for Terraform. This combination allows developers to provision complex infrastructure by filling out a simple form, abstracting away the complexity of HCL code and cloud provider APIs.

Designing "Golden Paths" with Terraform Modules

The core concept of an IDP is the "Golden Path"—a pre-approved, supported way of building and deploying software. Instead of allowing developers to write arbitrary Terraform code (which carries security risks), Platform Engineering teams build reusable Terraform Modules that encapsulate best practices.

Example: The "Microservice Golden Path"

A microservice Golden Path might utilize a Terraform module that automatically provisions:

# Example: Microservice Golden Path Module
module "microservice" {
  source = "github.com/hostingx-il/terraform-modules//microservice"
  
  service_name    = "payment-api"
  team            = "payments"
  cost_center     = "engineering"
  environment     = "production"
  
  # Compute
  container_image = "ecr.io/payment-api:v1.2.3"
  cpu             = "1024"
  memory          = "2048"
  replicas        = 3
  
  # Database
  database_size   = "db.t3.medium"
  storage_gb      = 100
  multi_az        = true
  
  # Observability
  enable_datadog  = true
  sla_uptime      = "99.9"
  pagerduty_key   = var.pagerduty_payment_key
}

# Outputs automatically include:
# - Service URL
# - Database endpoint
# - IAM role ARN
# - CloudWatch Log Group

By utilizing these modules, HostingX IL ensures that every service deployed via the IDP is compliant by design. The developer does not need to know how to configure a VPC securely; they simply need to request a "High-Availability Microservice".

Integration Mechanics: Linking Backstage to Terraform

The technical integration between Backstage and Terraform relies on the "Scaffolder" pattern, which transforms user input into executable infrastructure code.

The Five-Step Integration Flow:

  1. Template Definition: The platform team defines a YAML template in Backstage that specifies the input parameters (Service Name, Team, Cost Center, Environment).
  2. User Interaction: Developer fills out a form in the Backstage UI with required parameters and optional configurations.
  3. Trigger Event: When a developer clicks "Create," Backstage triggers a webhook to the CI/CD system (e.g., GitHub Actions).
  4. Terraform Execution: The CI/CD pipeline clones a "template repository," hydrates it with the user's input variables, and runs terraform plan followed by terraform apply.
  5. Feedback Loop: Once the infrastructure is provisioned, Terraform outputs the resource details (e.g., the database endpoint, service URL), which are sent back to the Backstage catalog and displayed to the developer.

HostingX IL Pro Tip: We implement approval gates for production deployments. The Backstage workflow can route high-cost or high-risk requests (e.g., production databases > $500/month) through a Slack approval channel before executing Terraform.

HostingX IL specializes in building these custom integration flows, ensuring that the IDP feels like a seamless product rather than a disjointed set of tools. We handle the complexity of authentication, state management, and error handling so developers experience a "click and forget" provisioning experience.

Solving the "Day 2" Challenge

Many IDPs focus solely on creation ("Day 1"), leaving teams to struggle with updates and maintenance ("Day 2"). HostingX IL addresses this by integrating Terraform State Management into the IDP workflow.

Day 2 Operations in the IDP:

By using remote backends and separating state files per service (e.g., services/payment-api.tfstate, services/user-api.tfstate), the platform ensures that a developer updating Service A cannot accidentally impact Service B—a critical safety mechanism for multi-tenant platforms.

The Business Value of an IDP

Implementing an IDP with Terraform and Backstage delivers measurable ROI across multiple organizational dimensions:

Quantified Business Impact:
  • Reduced Lead Time: Provisioning time drops from days (waiting for tickets) to minutes (automated execution). One Israeli fintech reported reducing average provisioning time from 5.2 days to 8 minutes.
  • Cognitive Load Reduction: Developers focus on application logic rather than wrestling with cloud configurations. Survey data shows a 40% improvement in developer satisfaction scores.
  • Standardization: Every service looks and behaves the same, simplifying debugging and incident response. Mean Time to Resolution (MTTR) improves by 35-50%.
  • Compliance by Default: Security and compliance become automatic rather than manual audits. SOC 2 audit preparation time reduced from weeks to days.
  • Cost Optimization: Standardized modules eliminate over-provisioning. Organizations typically see 20-30% reduction in cloud spend within the first year.

Real-World Implementation: Case Study

Israeli SaaS Company: 100-Person Engineering Team

Challenge: Developers waited 3-7 days for infrastructure requests. Ops team received 60+ tickets per week, becoming a bottleneck for product velocity.

HostingX IL Solution: Implemented Backstage IDP with 8 Golden Path modules covering microservices, databases, queues, and analytics pipelines.

Results after 6 months:

  • Infrastructure provisioning: <10 minutes (98% of requests)
  • Ops tickets: Reduced by 85% (from 60/week to 9/week)
  • Developer velocity: 2.3x increase in feature deployment frequency
  • Cloud costs: 27% reduction through standardized, right-sized resources
  • Security incidents: Zero misconfigurations (previously 3-4/month)

Advanced Patterns: Progressive Delivery

HostingX IL implements progressive delivery patterns within the IDP framework, enabling advanced deployment strategies:

HostingX IL: Your Platform Engineering Partner

Building an IDP requires a diverse skill set: React/TypeScript for the frontend, Go/Python for backend plugins, and deep Terraform expertise for the infrastructure engine. HostingX IL offers "Managed Platform" services that provide this expertise on demand.

Our Platform Engineering Service Includes:

Getting Started: The IDP Journey

HostingX IL recommends a phased approach to IDP implementation:

  1. Phase 1 - Foundation (Weeks 1-4): Deploy Backstage, build first Golden Path (e.g., stateless microservice), pilot with 2-3 teams
  2. Phase 2 - Expansion (Weeks 5-12): Add data layer paths (databases, queues), integrate observability, expand to 50% of engineering
  3. Phase 3 - Maturity (Weeks 13-24): Advanced patterns (multi-region, DR), full organization adoption, self-service analytics

Conclusion: Empowering Developers, Protecting the Platform

The Internal Developer Platform represents the future of software delivery. By combining Backstage's exceptional developer experience with Terraform's infrastructure automation power, HostingX IL builds platforms that accelerate velocity while maintaining security, compliance, and cost efficiency.

For Israeli tech companies competing in global markets, the ability to provision production-grade infrastructure in minutes—not days—is a strategic differentiator. By partnering with HostingX IL, you can leapfrog the steep learning curve of Platform Engineering and deliver a world-class developer experience immediately.

The question is not whether your organization needs an IDP, but how quickly you can implement one. With HostingX IL, the answer is: faster than you think, and better than you imagined.

Ready to Build Your Internal Developer Platform?

Let HostingX IL architect and implement your Platform Engineering transformation with Backstage and Terraform.

Explore Platform Engineering ServicesSchedule Consultation
logo

HostingX IL

Scalable automation & integration platform accelerating modern B2B product teams.

michael@hostingx.co.il
+972544810489

Connect

EmailIcon

Subscribe to our newsletter

Get monthly email updates about improvements.


Copyright © 2025 HostingX IL. All Rights Reserved.

Terms

Privacy

Cookies

Manage Cookies

Data Rights

Unsubscribe