-
Notifications
You must be signed in to change notification settings - Fork 5
4. Adding new IaC technologies
Nfsaavedra edited this page Jun 16, 2022
·
1 revision
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.
To add a new IaC technology there are three main steps:
- Create a parser for the new technology as described in the Parsers section.
- 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. - Change the processing of the tech option in the main file to consider the new technology and parser.