Skip to main content
Source Link
abritez
  • 2.6k
  • 3
  • 29
  • 37

simple aws-sdk for nodejs not working

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?