39
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

aws lambda file書き込む時のエラー

Posted at

lambdaでfile作成する時以下のエラーが出る場合がある

OSError: [Errno 30] Read-only file system:

解決

以下の経路をつけること
/tmp/

例)

file_name_xlsx = '/tmp/' + file_name + ".xlsx"
file_name_csv = '/tmp/' + file_name + ".csv"
39
17
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?