Akihiro Seki
Akihiro Seki

Reputation: 341

The require rights for listEventSourceMappings on AWS Lambda

I execute follow function on 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
});

This permission error occurred.

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)

I try same rights on IAM. But same error occurred. Do you know the rights for ListEventSourceMappings?

Upvotes: 0

Views: 983

Answers (1)

Michael - sqlbot
Michael - sqlbot

Reputation: 179254

The required permission is actually called lambda:ListEventSourceMappings.

See Actions and Condition Context Keys for AWS Lambda in the IAM User Guide for the complete list.

Upvotes: 1

Related Questions