LoginSignup
0
0

More than 1 year has passed since last update.

Lambda がマウントする EFS エンドポイントの Posix ユーザの嵌り

Posted at

Lambda 関数を作成して、EFS にファイルを書き込もうとしたら、エラーになってしまう。

ちなみに、読み込みは問題なくできる。

一例では、ユーザIDを、1000にしろとか、1001 にしろとかなっているが、エラーになってしまう。何が悪いのか、設定が悪いのか、と思って確認しても、特に悪いところがない。

原因は、root がオーナーのファイルシステムに書き込もうとしていたためであった。

読み込みはできるということは、AWS 特有のポリシとかではないのは明らか。

ユーザーID を 0 にしたところ、問題なく書き込みができた。

(参考)
https://aws.amazon.com/jp/premiumsupport/knowledge-center/efs-mount-with-lambda-function/

0
0
0

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
0
0