•   over 5 years ago

A workaround for the amazon-lex-bot-export

If anyone's an AWS-SDK newbiew like myself, if you're having credential issue, you can add the line
AWS.config.loadFromPath('./config.json');
into the exportlexbot.js file, and populate your credential in config.json, follow http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-json-file.html

  • 1 comment

  •   •   over 5 years ago

    You can also make them environmental variables before you run it, like:
    export AWS_ACCESS_KEY_ID=AK...
    export AWS_SECRET_ACCESS_KEY=...

Comments are closed.