trend-anz / Cloud-One-Conformity-Profile-Builder

A pyjq script to create rule profiles based on inbuilt compliance standards available within Cloud Conformity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud-One-Conformity-Profile-Builder

Python script to create conformity profiles based on compliance standards & frameworks available within Conformity

Installation

Ensure build tools such as make, automake, libtool are already installed as these are require to install pyjq.

sudo apt-get install build-essential

Run the following command:

pip3 install -r requirements.txt

Docker

  • Create env.sh file as mentioned in build.sh helper
  • Run ./build.sh to create the Docker image
  • Run ./run.sh bash to run a container and open bash on it

Usage

  1. Optionally set the apiKey and apiRegion environment variables for your conformity api key and region. (Only required for online option).
  2. Run the script with one of the following arguments: local to generate profile files locally in the current folder, or online to create the profiles directly within your Conformity account. Optionally use local4api to produce profile that can be uploaded via API later.
python3 cpb.py local

About

A pyjq script to create rule profiles based on inbuilt compliance standards available within Cloud Conformity

License:MIT License


Languages

Language:Python 88.2%Language:Shell 7.2%Language:Dockerfile 4.5%