cloudsploit
cloudsploit copied to clipboard
Error loading config file
INFO: Using CloudSploit config file: config.js ERROR: Config file could not be loaded. Please ensure you have copied the config_example.js file to config.js
Does someone knows why I am unable to load the config.js file? I did all the steps listed in the instructions.
It seems that it requires an absolute path to the config file, probably depends on system and setup and providing an absolute path to the config.js works 100% of times
It seems that it requires an absolute path to the config file, probably depends on system and setup and providing an absolute path to the config.js works 100% of times
I have set absolute path running Node on Windows and it will not load the config file. Not sure what the issue is there...
Hm, I just ran on both Mac and Windows and both worked. Make sure you specifying an absolute path in command-line/terminal. On Mac/Linux it's $./ingex.js --config /absolute/path/to/config.js On Windows: node ingex.js --config /absolute/path/to/config.js
I did set the absolute path to config file, but still not working...
i'm getting the same error as well
// CloudSploit config file
module.exports = {
credentials: {
aws: {
// OPTION 1: If using a credential JSON file, enter the path below
credential_file: '~/.aws/cSploit.js'
// OPTION 2: If using hard-coded credentials, enter them below
// access_key: process.env.AWS_ACCESS_KEY_ID || '',
// secret_access_key: process.env.AWS_SECRET_ACCESS_KEY || '',
// session_token: process.env.AWS_SESSION_TOKEN || '',
// plugins_remediate: ['bucketEncryptionInTransit']
}
}
};
Getting the same error, on arch linux. pointing the credential_file to a json as specified by the README, and still getting error.
Result? I can't use the tool
Same
Hm, I just ran on both Mac and Windows and both worked. Make sure you specifying an absolute path in command-line/terminal. On Mac/Linux it's $./ingex.js --config /absolute/path/to/config.js On Windows: node ingex.js --config /absolute/path/to/config.js
This works for me, thanks.
from $ ./index.js --config=config.js
to $ ./index.js --config=$(pwd)/config.js