aquasecurity / cloudsploit

Cloud Security Posture Management (CSPM)
https://cloud.aquasec.com/signup
GNU General Public License v3.0
3.34k stars 673 forks source link

It seems that does not try to scan my Azure environment. #1287

Open hisashiyamaguchi opened 2 years ago

hisashiyamaguchi commented 2 years ago

I'm trying to scan my azure environment, but it seems it tries to scan only AWS environment even if I don't specify my AWS credentials on config.js. Here come my config.js and credential.json.

// CloudSploit config file

module.exports = {
    credentials: {
        azure: {
            credential_file: '/Users/hyamaguc/cloudsploit/credential.json'
        },
        azure_remediate: {
            credential_file: '/Users/hyamaguc/cloudsploit/credential.json'
        }
};
{
  "ApplicationID": "xxxx",
  "KeyValue": "xxxx",
  "DirectoryID": "xxxx",
  "SubscriptionID": "xxxx"
}

Here comes the output of ./index.js

./index.js --cloud azure

   _____ _                 _  _____       _       _ _
  / ____| |               | |/ ____|     | |     (_) |
 | |    | | ___  _   _  __| | (___  _ __ | | ___  _| |_
 | |    | |/ _ \| | | |/ _` |\___ \| '_ \| |/ _ \| | __|
 | |____| | (_) | |_| | (_| |____) | |_) | | (_) | | |_
  \_____|_|\___/ \__,_|\__,_|_____/| .__/|_|\___/|_|\__|
                                   | |
                                   |_|

  CloudSploit by Aqua Security, Ltd.
  Cloud security auditing for AWS, Azure, GCP, Oracle, and GitHub

INFO: No config file provided, using default AWS credential chain.
INFO: Skipping AWS pagination mode
INFO: Determining API calls to make...
INFO: Found 297 API calls to make for aws plugins
INFO: Collecting metadata. This may take several minutes...
[INFO][REGIONS] Could not load all regions from EC2: {"message":"Missing region in config","code":"ConfigError","time":"2022-06-07T01:00:14.011Z"}
malwarewolves commented 2 years ago

I didn't use a the credential file. I use the config.js filled out, and then run it like this

./index.js --config=./config.js --csv nameofcsv.csv