Skip to content Skip to sidebar Skip to footer

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=newAWS.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"