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

參照這篇文章 http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.htmljavascript

 

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:html

  • Linux users: ~/.aws/credentialsjava

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

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:ide




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

新建credential 文件 並將acess key 等填入 就能夠本地運行 lambdaui

相關文章
相關標籤/搜索