1

I am trying to have a simple process happen on my S3 account using Amazon's node pluging https://github.com/aws/aws-sdk-js

Here is my node code:

var AWS = require('aws-sdk');
var s3 = new AWS.S3();

AWS.config.update({
    "accessKeyId": "ACCESS_KEY",
    "secretAccessKey": "SECRET",
    "region": "us-west-2"
});

s3.createBucket({Bucket: 'testBucket'});

I have a feeling that my issue has more to do with my permissions on S3, but not sure. The user I am using has an "AmazonS3FullAccess" policy attached to it. Is there something else that I am missing?

4

1 回答 1

1

正如预期的那样,这是权限问题。我使用的用户帐户与特定存储桶相关联。所以创建一个新的bucket超出了权限设置的范围。

于 2013-07-28T15:34:43.563 回答