//
Report Bug
·
Request Feature
Table of Contents
This is a Python CLI to prepare the scan for LeanIX Cloud Intelligence. The CLI allows to check a given IAM role against all requirements and if successfull already populates the minimum-viable scan config in the scan config in the admin setting of the LeanIX CI Workspace. It also reads all activated cost-allocation tags.
- Python >3.0
- create a virtual environment e.g. venv
python3 -m venv aws_scanner- activate the virtual environment
source aws_scanner/bin/activate- install the package
pip install hawshaws setup will guide you through setting up the needed data (i.e. credentials and other config) to run haws run later on.
haws run is the core of the CLI. It runs the credential-,policy-, organizational layout- and cost allocation-tag check
Options:
--save-runtime: [boolean] if set, will store the config set underhaws setupafter the checks are done.
Default: False--write-config: [boolean] if set, will overwrite the LeanIX Cloud Scan config in the specified workspace.
Default: False--get-org: [boolean] if set, will traverse the AWS Organization and create a org chart.
Default: False
haws setup
haws run
haws run --save-runtime
Distributed under the Apache 2.0 License. See LICENSE for more information.
Vincent Groves - vincent.groves@leanix.net