Coder Social home page Coder Social logo

Comments (3)

0xdabbad00 avatar 0xdabbad00 commented on May 18, 2024 1

You just need to supply your account name, so you should be running:

aws-vault exec REDACTED -- python cloudmapper.py gather --account-name your_account

I could have cloudmapper provide a default name for your account, or identify your account ID if it has AWS access and use your account ID as your account name. Those are possibilities. I think it's better to ensure the user specifies which account they are interested in though, as many users have many accounts.

from cloudmapper.

0xdabbad00 avatar 0xdabbad00 commented on May 18, 2024

The collect_data.sh script just wraps the aws cli which will use the AWS related environmental variables by default. Likewise, using cloudmapper.py gather uses boto which does this by default, so I'm not sure what you mean. Can you explain further?

from cloudmapper.

sahal avatar sahal commented on May 18, 2024

I think this default behavior in boto3/awscli is reset with the following lines:

(ins)(venv) [~/build/cloudmapper]$ aws-vault exec REDACTED -- python cloudmapper.py gather
Enter token for arn:aws:iam::REDACTED:mfa/REDACTED: REDACTED
usage: cloudmapper.py [-h] --account-name ACCOUNT_NAME
cloudmapper.py: error: argument --account-name is required
(ins)(venv) [~/build/cloudmapper]$ aws-vault exec REDACTED -- ./collect_data.sh
* Startup checks
ERROR: No account Name Specified
Usage:
  ./collect_data.sh --account my_account [--profile aws_profile]

I attempted to fix it with the linked PR, which is probably not ideal.

from cloudmapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.