Template-Based IaC Generation With Existing Code Integration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing infrastructure-as-code (IaC) tools require specialized knowledge and are difficult to use, especially when switching between different tools or platforms, and manual coding is prone to errors and time-consuming.

Innovation Solution

An Infrastructural Code Generator (ICG) that automatically generates IaC code in various languages based on simplified user input, using a template-based approach and infrastructure modeling language like DOML, allowing integration with existing assets and specifying execution order for container deployments.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If manual IaC code writing is used, then infrastructure provisioning can be automated, but the process becomes time-consuming and error-prone

Engineering Contradiction:
Improveinfrastructure provisioning automationVSAvoidcode writing time
Core Design Contradiction:
Extent of automationVSLoss of time

Solution Approach 1:

The system performs preliminary action by automatically generating IaC code before manual writing would occur. The code generation system pre-computes and produces ready-to-use IaC code based on infrastructure requirements, eliminating the need for time-consuming manual coding while maintaining automation benefits

Inventive Principle:
Principle #10Preliminary action

2Extent of automation

If manual IaC code writing is used, then infrastructure provisioning can be automated, but the process becomes error-prone

Engineering Contradiction:
Improveinfrastructure provisioning automationVSAvoidcode accuracy
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The system applies self-service by enabling automatic code generation that serves itself without human intervention. The code generation system automatically produces accurate IaC code based on infrastructure specifications, reducing human errors while maintaining automation. The system self-corrects and validates code generation without requiring manual verification

Inventive Principle:
Principle #25Self-service

3Manufacturing precision

If specialized IaC language knowledge is required, then precise infrastructure provisioning is achieved, but ease of operation decreases

Engineering Contradiction:
Improveinfrastructure provisioning precisionVSAvoidcode generation ease
Core Design Contradiction:
Manufacturing precisionVSEase of operation

Solution Approach 1:

The system uses an intermediary approach by introducing a code generation system that translates high-level infrastructure requirements into precise IaC code. This intermediary layer eliminates the need for users to learn specialized IaC languages while maintaining provisioning precision. The generator acts as a mediator between simple user input and complex code output

Inventive Principle:
Principle #24Intermediary (Mediator)

4Adaptability or versatility

If multiple IaC tools are used, then versatility in infrastructure provisioning is achieved, but device complexity increases

Engineering Contradiction:
ImproveIaC tool compatibilityVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system applies universality by designing a code generation system that produces IaC code compatible with multiple tools and platforms. The generator is multi-functional, supporting various IaC languages and tools through a unified interface. This allows the system to maintain versatility across different infrastructure provisioning tools without increasing operational complexity for users

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20260030000A1Automatic generation of infrastructure-as-code
Publication Date: 2026.01.29 HEWLETT PACKARD ENTERPRISE DEV LP
  • US20260030000A1 patent drawing
  • US20260030000A1 patent drawing
  • US20260030000A1 patent drawing

AI summary

An infrastructural code generator comprises a template library, a parser, and a code generator subsystem. The template library stores multiple infrastructure-as-code (IaC) templates, each comprising IaC code fragments and placeholders. The parser generates an intermediate representation comprising keywords by parsing a received infrastructure definition file. The code generator subsystem generates an output IaC code file from the intermediate representation. The output IaC code file is generated by (1) selecting at least one of the IaC templates and substituting the keywords from the intermediate representation for the placeholders in the selected IaC template to generate new IaC code, and (2) in response to the infrastructure definition file comprising an assets folder containing preexisting IaC code, integrating the preexisting IaC code with the new IaC code to generate the output IaC code file.