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

后端 未结 7 872
眼角桃花
眼角桃花 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 was having the same error. But I found the issue. I was using wrong Environment variable name. From NodeJS to S3, I need to use the following variable names:

    process.env.AWS_ACCESS_KEY_ID = 'XXXXXXXXXXXXXXXXXXX';
    process.env.AWS_SECRET_ACCESS_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXX';
    process.env.AWS_REGION = 'us-east-1';
    

    Once I corrected the variable names, it just ran fine. regards, Dipankar

    0 讨论(0)
提交回复
热议问题