Cloud CSM Reports script shows the overall pass and fail rates for each CSM policy rule for all csp accounts included in the report's scope.
The main purpose of this script is to generate a report to show the overall pass and fail for each Cloud CSM policy rule. the script exports these results into external CSV file format.
git clone https://github.com/tmiller999/cloud_csm_reports.git
cd cloud_csm_reports
pip install -r requirements.txt
| Variable | Description | Default Value |
|---|---|---|
| HALO_API_KEY | ID of HALO API Key | ef**ds**fa |
| HALO_API_SECRET_KEY | Secret of HALO API Key | fgfg*****heyw****ter352*** |
| HALO_API_HOSTNAME | Halo API Host Name | https://api.cloudpassage.com |
| HALO_API_PORT | Halo API Port Number | 443 |
| HALO_API_VERSION | HALO EndPoint Version | v1 |
| OUTPUT_DIRECTORY | Location for generated CSV file | /var/log |
To run the script follow the below steps.
cd cloud_csm_reports/app
python runner.py
Clone the code and build the container:
git clone https://github.com/cloudpassage/cloud_csm_reports.git
cd cloud_csm_reports
docker build -t halotools/cloud_csm_reports .
To run the container interactively:
docker run -it \
-e HALO_API_KEY=$HALO_API_KEY \
-e HALO_API_SECRET_KEY=$HALO_API_SECRET_KEY \
-v $OUTPUT_DIRECTORY:/var/log \
halotools/cloud_csm_reports
Content type
Image
Digest
sha256:1e4ed3d84…
Size
527.7 MB
Last updated
almost 4 years ago
docker pull halotools/cloud_csm_reports