13
12

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.

Lambdaにデフォルトで設定されている環境変数

Posted at

よく調べるのでメモ。
以下はランタイムがPython3.6の場合。

変数名
PATH /var/lang/bin:/usr/local/bin:/usr/bin/:/bin
LANG en_US.UTF-8
TZ :UTC
LD_LIBRARY_PATH /var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib
LAMBDA_TASK_ROOT /var/task
LAMBDA_RUNTIME_DIR /var/runtime
AWS_REGION ap-northeast-1
AWS_DEFAULT_REGION ap-northeast-1
AWS_LAMBDA_LOG_GROUP_NAME /aws/lambda/test-dev-hello
AWS_LAMBDA_LOG_STREAM_NAME 2018/04/25/[$LATEST]f00914837a68411fb0b4706da14d9c13
AWS_LAMBDA_FUNCTION_NAME test-dev-hello
AWS_LAMBDA_FUNCTION_MEMORY_SIZE 1024
AWS_LAMBDA_FUNCTION_VERSION $LATEST
_AWS_XRAY_DAEMON_ADDRESS 169.254.79.2
_AWS_XRAY_DAEMON_PORT 2000
AWS_XRAY_DAEMON_ADDRESS 169.254.79.2:2000
AWS_XRAY_CONTEXT_MISSING LOG_ERROR
_X_AMZN_TRACE_ID Root=1-5adffa5a-fff4d301c626fcc26d6336b5;Parent=0bba66737cd163b4;Sampled=0
AWS_EXECUTION_ENV AWS_Lambda_python3.6
_HANDLER handler.hello
PYTHONPATH /var/runtime
AWS_ACCESS_KEY_ID ASIxxxxxxxxxxxsxxxxx
AWS_SECRET_ACCESS_KEY 7HTxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AWS_SESSION_TOKEN FQoDYxxxxxxxxxxxxxxxxx以下略
AWS_SECURITY_TOKEN FQoDYxxxxxxxxxxxxxxxxx以下略

公式ドキュメント

13
12
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
13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?