LoginSignup
0
1

More than 5 years have passed since last update.

AWS Lambdaに使うPythonのpipでインストールしたライブラリを整理する

Last updated at Posted at 2018-11-23
  1. pip installするときに、vendorディレクトリを指定してインストールする。
    pip3 install requests -t apex/functions/notify/vendor
    (apexを使った例なのですが、notifyがLambda関数を指しています。)

  2. AWS Lambdaの環境変数に以下の設定を加える。
    変数:PYTHONPATH
    内容:/var/runtime:/var/task/vendor

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