Skip to content

Commit

Permalink
Merge pull request #638 from haeree-dev/master
Browse files Browse the repository at this point in the history
feature: update an array of reserved variables in aws lambda
  • Loading branch information
tongueroo committed Mar 23, 2023
2 parents 2056587 + 73c7562 commit 1733183
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/jets/resource/lambda/function/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,23 @@ def check_reserved_variables!(variables)
exit 1
end

# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html#lambda-environment-variables
# https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
def reserved_variables
%w[
_HANDLER
AWS_DEFAULT_REGION
AWS_REGION
AWS_EXECUTION_ENV
AWS_LAMBDA_FUNCTION_NAME
AWS_LAMBDA_FUNCTION_MEMORY_SIZE
AWS_LAMBDA_FUNCTION_VERSION
AWS_LAMBDA_INITIALIZATION_TYPE
AWS_LAMBDA_LOG_GROUP_NAME
AWS_LAMBDA_LOG_STREAM_NAME
AWS_ACCESS_KEY
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
TZ
LAMBDA_TASK_ROOT
LAMBDA_RUNTIME_DIR
AWS_LAMBDA_RUNTIME_API
Expand Down

0 comments on commit 1733183

Please sign in to comment.