AWS Lambda, saving S3 file to /tmp directory

前端 未结 1 788
终归单人心
终归单人心 2021-02-14 01:15

I want to copy a set of files over from S3, and put them in the /tmp directory while my lambda function is running, to use and manipulate the contents. The following code excerp

1条回答
  •  情书的邮戳
    2021-02-14 02:05

    You should save in /tmp, rather than tmp/.

    eg:

    local_file_name = '/tmp/' + KEY
    

    0 讨论(0)
提交回复
热议问题