duo-labs / cloudmapper

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

Improve aws-vault/docker run documentation #835

Closed rafops closed 3 years ago

rafops commented 3 years ago

Hello duo-labs team,

I improved the instructions for aws-vault and docker run with the following changes:

Testing AWS credentials:

root@a0c4d5b34c92:/opt/cloudmapper# aws sts get-caller-identity
{
    "UserId": "AROAXXXXXXXXXXXXXXXXX:rafops",
    "Account": "111111111111",
    "Arn": "arn:aws:sts::111111111111:assumed-role/cloudmapper-role/rafops"
}

I ran the collection successfully in a relatively large account without any issues. Here are the results:

Collection:

root@a0c4d5b34c92:/opt/cloudmapper# python cloudmapper.py collect --account prod
* Getting region names
* Creating directory for each region name
* Getting iam:generate-credential-report info
...
--------------------------------------------------------------------
Summary: 2436 APIs called. 0 errors

All the best and happy holidays!

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

0xdabbad00 commented 3 years ago

Were you using an IAM access key for aws-vault? I believe if you do that without using MFA when you create the session, that the IAM related collection fails, which is why I needed to specify --no-session in order to use the access keys directly.