Configuring region in Node.js AWS SDK

前端 未结 14 1527
失恋的感觉
失恋的感觉 2020-12-05 03:30

Can someone explain how to fix a missing config error with Node.js? I\'ve followed all the examples from the aws doc page but I still get this error no matter what.

14条回答
  •  独厮守ぢ
    2020-12-05 04:15

    To the comment above, you can always it run from your local global config file ~./aws/config by adding the following:

    process.env.AWS_SDK_LOAD_CONFIG="true";
    

    This will load your local global config file and use whatever credentials/account you are in which is really handy when iterating through multiple accounts / roles.

提交回复
热议问题