Skip to content

4. Adding new IaC technologies

Nfsaavedra edited this page Jun 16, 2022 · 1 revision

Parsers

Parsers for each IaC technology are defined in the parsers module. Each parser should inherit from the class Parser and define the methods to parse a file, folder or module, which will return a UnitBlock, Project or Module, respectively. The parsers will read the content of the files they receive and generate a tree hierarchy as the one below.

How to add a new IaC technology?

To add a new IaC technology there are three main steps:

  1. Create a parser for the new technology as described in the Parsers section.
  2. Add the technology in the Tech Enum. When you add the technology in the Enum, the option to select this technology will be automatically added to the command-line tool.
  3. Change the processing of the tech option in the main file to consider the new technology and parser.
Clone this wiki locally