How do you write to the file system of an aws lambda instance?

前端 未结 2 1302
既然无缘
既然无缘 2021-02-05 00:42

I am unsuccessfully trying to write to the file system of an aws lambda instance. The docs say that a standard lambda instance has 512mb of space available at /tmp/

2条回答
  •  一个人的身影
    2021-02-05 01:18

    So the answer lies in the context.fail() or context.succeed() functions. Being completely new to the world of aws and lambda I was ignorant to the fact that calling any of these methods stops execution of the lambda instance.

    According to the docs:

    The context.succeed() method signals successful execution and returns a string.

    By eliminating these and only calling them after I had run all the code that I wanted, everything worked well.

提交回复
热议问题