在lambda函数中使用https://www.npmjs.com/package/dynamodbexportcsv时出现EACCESS错误

时间:2019-11-04 17:36:42

标签: csv amazon-s3 aws-lambda amazon-dynamodb

https://www.npmjs.com/package/dynamodbexportcsv使用DynamoDbExportCsv时,出现错误:

array (
  2135 => 
  array (
    'id' => 2135,
    'first_name' => 'John',
    'last_name' => 'Doe',
  ),
  3245 => 
  array (
    'id' => 3245,
    'first_name' => 'Sally',
    'last_name' => 'Smith',
  ),
  5342 => 
  array (
    'id' => 5342,
    'first_name' => 'Jane',
    'last_name' => 'Jones',
  ),
  5623 => 
  array (
    'id' => 5623,
    'first_name' => 'Peter',
    'last_name' => 'Doe',
  ),
)

我的代码如下,但是访问键,表名等已放入代码中。

"stack": [
        "Error: spawn /var/task/node_modules/dynamodbexportcsv/bin/DynamoDbExportCsv EACCES",
        "    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)",
        "    at onErrorNT (internal/child_process.js:415:16)",
        "    at process._tickCallback (internal/process/next_tick.js:63:19)"
    ]

0 个答案:

没有答案