duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.9k stars 797 forks source link

Cloudmapper fails to install on macos #896

Open alexr3 opened 2 years ago

alexr3 commented 2 years ago

Hi!

When installing "pip install -r requirements.txt", the error "No matching distribution found for pandas==1.1.3" is displayed. I have a MacOS BigSur 11.6 (M1).

When installing Pandas version 1.1.3 the same error. Pandas version 1.3.3 is currently installed.

How can I solve this?

Techbrunch commented 1 year ago

I suggest you try using Docker as a workaround:

git clone https://github.com/duo-labs/cloudmapper
docker build -t cloudmapper .
docker run -ti -v ~/.aws/:/root/.aws/ cloudmapper /bin/bash
python cloudmapper.py configure  add-account --config-file config.json --name XXX --id XXX --default true
python cloudmapper.py configure discover-organization-accounts
python cloudmapper.py collect --account XXX --profile XXX
python cloudmapper.py report --accounts XXX,XXX
docker cp $(docker ps -f ancestor=cloudmapper --format "{{.ID}}"):/opt/cloudmapper/account-data ./
docker cp $(docker ps -f ancestor=cloudmapper --format "{{.ID}}"):/opt/cloudmapper/web .
erict35000 commented 8 months ago

I was unable to install cloud mapper on macOS Monterey, Ubuntu 22.04 and Mint.

So I decided to install docker on macOS Monterey and follow these instructions : https://github.com/duo-labs/cloudmapper/issues/896

Everything is fine, but when I type python cloudmapper.py report --accounts XXX,XXX, what I have to input as accounts. I try with audit, my account on AWS and the number of AWSaccount. I use a specific config.json for my AWS platform but it asks a region or tells me audit our xxxx are not in my config file.

Could you please tell me what I need to add to my config.json file ?

Regards Eric