码迷,mamicode.com
首页 > 其他好文 > 详细

本地运行aws lambda credential 配置 (missing credential config error)

时间:2016-11-17 23:10:02      阅读:367      评论:0      收藏:0      [点我收藏+]

标签:linux   users   amazon   运行   file   highlight   als   values   mis   

参照这篇文章 http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html

 

You can keep your AWS credentials data in a shared file used by SDKs and the command line interface. The SDK for JavaScript automatically searches the shared credentials file for credentials when loading. Where you keep the shared credentials file depends on your operating system:

  • Linux users: ~/.aws/credentials

  • Windows users: C:\Users\USER_NAME\.aws\credentials

If you do not already have a shared credentials file, you can create one in the designated directory. Add the following text to the credentials file, replacing <YOUR_ACCESS_KEY_ID> and <YOUR_SECRET_ACCESS_KEY>values:

[default]
aws_access_key_id = <YOUR_ACCESS_KEY_ID>
aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>


新建credential 文件 并将acess key 等填入 就可以本地运行 lambda

本地运行aws lambda credential 配置 (missing credential config error)

标签:linux   users   amazon   运行   file   highlight   als   values   mis   

原文地址:http://www.cnblogs.com/IamThat/p/6075615.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!