AWS:请求中包含的安全令牌无效

时间:2018-08-03 08:52:26

标签: amazon-web-services ssm

在本地运行lambda,我得到了错误。 AWS.config.update({   地区:“ ap-southeast-1”,   accessKey:'xx',   secretAccessKey:'xxx', });

{UnrecognizedClientException:请求中包含的安全令牌无效。     在Request.extractError(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ protocol \ json.js:48:27)     在Request.callListeners(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ sequential_executor.js:105:20)     在Request.emit(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ sequential_executor.js:77:10)     在Request.emit(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ request.js:683:14)     在Request.transition(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ request.js:22:10)     在AcceptorStateMachine.runTo(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ state_machine.js:14:12)     在D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ state_machine.js:26:10     应要求。 (D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ request.js:38:9)     应要求。 (D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ request.js:685:12)     在Request.callListeners(D:\ Work \ Amazon \ BillingAggregator \ billing-file-sender \ node_modules \ aws-sdk \ lib \ sequential_executor.js:115:18)   消息:“请求中包含的安全令牌无效。”,   代码:“ UnrecognizedClientException”,   时间:2018-08-03T08:21:29.493Z,   requestId:'e07f905c-0bbf-4508-8f79-ca0dc9348867',   statusCode:400,

0 个答案:

没有答案