【问题标题】:The require rights for listEventSourceMappings on AWS LambdaAWS Lambda 上 listEventSourceMappings 的要求权限
【发布时间】:2017-08-28 02:41:28
【问题描述】:

我在 AWS Lambda 上执行跟随功能。

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 的权限吗?

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2019-10-14
      • 2021-11-14
      • 2021-02-16
      • 2021-06-17
      • 2023-02-02
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多