====== CloudMapper ======
----
===== Installation=====
==== Prérequis ====
sudo apt-get install python3-pip python3.10-venv
sudo apt-get install autoconf automake libtool python3.7-dev python3-tk jq awscli
sudo apt-get install graphviz
==== Installation ====
=== Téléchargement ===
git clone https://github.com/duo-labs/cloudmapper.git
cd cloudmapper
=== Modification ===
Supprimer du fichier requirement.txt la ligne concernant pyjq
=== Installation dans un environnement virtuel ===
python3 -m venv ./venv && source venv/bin/activate
pip install pyjq
pip install -r requirements.txt
==== Configuration ====
* Copier le fichier config.json.demo en config.json et renseigner les informations.
* Configurer les credentials AWS
aws configure
----
===== Utilisation =====
==== Collecte des données ====
=== Commande ===
python cloudmapper.py collect --account
=== Résultat ===
Sous le répertoire account-data/ création d'un sous répertoire par région contenant des fichiers json.
==== Générer un rapport ====
python cloudmapper.py report --account
==== Générer un diagramme web interactif ====
=== Génération ===
python cloudmapper.py prepare --account
=== lancement serveur web ===
python cloudmapper.py webserver
=== visualisation résultat ===
Lancer un navigateur à l'adresse [[http://127.0.0.1:8000]]
----