AWS Lambda上listEventSourceMappings的require权限

时间:2017-08-28 02:41:29

标签: node.js amazon-web-services lambda aws-lambda

我在AWS Lambda上执行follow函数。

params = {
  Marker: "", 
  MaxItems: 123
};
lambda.listEventSourceMappings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else console.log(data); // successful response
});

发生此权限错误。

AccessDeniedException: User: arn:aws:sts::12334567778:assumed-
role/xxxxxx/yyyyyy is not authorized to perform: 
lambda:ListEventSourceMappings
at Object.extractError (/var/runtime/node_modules/aws-
sdk/lib/protocol/json.js:48:27)

我在IAM上尝试相同的权利。 但同样的错误发生了。 你知道ListEventSourceMappings的权利吗?

1 个答案:

答案 0 :(得分:1)

所需的权限实际上称为lambda:ListEventSourceMappings

有关完整列表,请参阅IAM用户指南中的Actions and Condition Context Keys for AWS Lambda