Declarative infrastructure intent with infraPatterns

How infraPatterns is designed to replace imperative scripts with composable patterns that describe intent and deploy consistently across environments.

7 min read

Infrastructure automation has moved through several generations: manual configuration, imperative scripts, configuration management tools and infrastructure as code. Each generation removed some complexity, yet engineers still work close to the underlying resources.

infraPatterns is designed as the next step: declarative infrastructure intent.

The abstraction gap

Infrastructure-as-code tools such as Terraform and Pulumi are powerful, but they still require engineers to think in resources: VPCs, subnets, security groups, instances and load balancers.

This creates problems:

  • Teams rebuild the same patterns across projects
  • Knowledge is locked in complex, brittle configurations
  • Changing providers means rewriting everything
  • New team members face a steep learning curve
  • Audit and compliance require understanding implementation details

The alternative is to express intent and leave the implementation to the tooling.

Patterns as first-class citizens

infraPatterns is designed to treat infrastructure patterns as composable, reusable abstractions. Engineers will define intent instead of resources:

  • "I need a secure web application with database backend"
  • "I need an isolated processing environment with controlled ingress"
  • "I need a multi-region deployment with automatic failover"

Each pattern will encode established practice, security controls and operational requirements. Patterns will combine into complete infrastructure definitions that can be deployed to any supported target environment.

Compose once, deploy anywhere

The same pattern definitions are intended to work across:

  • Connected cloud environments
  • On-premises data centres
  • Air-gapped networks
  • Hybrid configurations

Patterns will be provider-aware and use native capabilities where they exist. The intent stays consistent across every target.

Why this matters for critical infrastructure

Critical infrastructure operators work under specific constraints:

  • Strict change control requirements
  • Long approval cycles
  • Air-gapped deployment targets
  • Compliance and audit requirements
  • Diverse technology environments

Declarative patterns address each of these:

Reviewable intent: Auditors and approvers can see what a pattern does without reading implementation details. The pattern definition serves as the documentation.

Portable definitions: An approved pattern works across environments. It passes security review once and can then be deployed to each target.

Controlled composition: Patterns can enforce constraints such as security boundaries, resource limits and required components. Composition stays within those limits.

Versioned evolution: Patterns are versioned independently of deployments. A pattern can be updated, its impact assessed and the change rolled out systematically.

The infraPatterns architecture

The planned system has three layers:

Pattern library: Curated, versioned patterns that encode infrastructure intent. Some will ship with the platform and some will be written by each organisation. All will be composable.

Composition engine: Combines patterns, resolves dependencies, validates constraints and generates deployment artefacts.

Deployment targets: Adapters for cloud providers, on-premises systems and air-gapped networks. The same composition will deploy to any supported target.

Beyond infrastructure

The same approach extends to application intent:

  • Service mesh configurations
  • Observability stacks
  • Security controls
  • Compliance frameworks

When patterns compose cleanly, the line between "infrastructure" and "application" matters less. The patterns then describe the whole operating environment.

The path forward

We are designing infraPatterns for organisations that manage complex infrastructure across varied environments. The initial focus is critical infrastructure (government, defence, energy and industrial), where the constraints are strictest and the need is clearest.

The principle applies more widely: infrastructure automation should describe intent and leave the implementation to composable, portable patterns.