AWS Missing credentials when i try send something to my S3 Bucket (Node.js)

后端 未结 7 897
眼角桃花
眼角桃花 2020-12-02 16:51

Hei!

I\'m having this issue since yesterday, and I\'m having trouble for find a solution.

I\'m trying to send somethings to my S3 bucket, but this message ap

7条回答
  •  鱼传尺愫
    2020-12-02 17:41

    I had the same problem until I reversed the two lines:

    var s3 = new AWS.S3();
    AWS.config.loadFromPath('./AwsConfig.json'); 
    

    to this:

    AWS.config.loadFromPath('./AwsConfig.json'); 
    var s3 = new AWS.S3();
    

提交回复
热议问题