I am having trouble setting the aws credentials for a react app that needs the aws sdk. I have set up my credentials file in the '~/.aws/credentials' path, and I know this is okay. However, I don't know how to go about this in my jsx file. My understanding was that the SDK checks this credentials file on its own.
Here is my code:
process.env.AWS_SDK_LOAD_CONFIG = true;
var AWS = require("aws-sdk");
console.log(AWS.config)
But when I log the AWS.config object, I see credentials: null, region: null
I'd really appreciate any help!