make deps
make python-deps
honcho start
- Voila! Your local server should be available at port
2021
: http://localhost:2021/
In order to add a new rule or just new mappings you have to manipulate some JSON files in the following way:
-
Locate mappings JSONs found in
mappings.rules
- for CUSTOM rules, find CUSTOM_RULE_MAPPINGS dict and under the according Cloud Platform, add the rule details following the exact structure as the above ones
- for AWS Config rules, find AWS_CONFIG_RULE_MAPPINGS and add the rule details following the exact structure as the above ones
-
Map the rule to the appropriate Lens type.
mappings.lenses
directory contains a file for each lens type.- Locate the desired workload file,
- Find the question/answer to which your rule applies to
- Using
mappings.lenses.autodiscovery
insert theQuestion -> Answer -> Rule
connection there