3

var params = {
      MasterRegion: "us-east-1",
      FunctionVersion: "ALL",
      //Marker: '',

      MaxItems: 10
    };
    lambda.listFunctions(params, function(err, data) {
      if (err) console.log(err, err.stack);
      else console.log("Lambdas list ", data);
    });

This code returns empty functions array in the response. Even though there are lambdas in the region. However, the params object:

var params = {
      //MasterRegion: "us-east-1",
      //FunctionVersion: "ALL",
      //Marker: '',
      MaxItems: 10
    };

Returns lambdas in the region. What's going on here?

4

1 回答 1

0

https://github.com/aws/aws-sdk-js/issues/1931

This issue explains the problem here.

于 2018-02-19T06:02:35.557 回答