2

Lambda 函数从 SSM 密码存储中获取密码,但遇到此错误。已经为 lambda 角色和 cognito 角色设置了策略。ssm:描述参数 ssm:获取参数 sts:assumerole

\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) 消息:'用户:arn:aws:sts::000008109xxx:assumed-role/Cognito_tpnpoolUnauth_Role/CognitoIdentityCredentials 无权执行:ssm:

4

0 回答 0