Aws-sdk PutObject Access Denied Request.extractError
I have the following policy attached to the IAM user I am using. { 'Version': '2012-10-17', 'Statement': [ { 'Sid': 'Stmt1468642330000', 'Ef
Solution 1:
Ok, I found the issue, looks like its using the [default]
profile specified in the ~/.aws/credentials
file.
I found that I need to configure AWS like this:
AWS.config = new AWS.Config({
accessKeyId: appConfig.aws.accessId,
secretAccessKey: appConfig.aws.secretKey,
logger: process.stdout
});
I was originally setting
AWS.config.accessKeyId = ...
Post a Comment for "Aws-sdk PutObject Access Denied Request.extractError"