내용으로 건너뛰기

Package directory

0

Where could I find the lambda package directory? Best regards,

  • please accept the answer if it was helpful

질문됨 2년 전291회 조회
2개 답변
1

For Python https://gist.github.com/gene1wood/4a052f39490fae00e0c3#file-all_aws_lambda_modules_python3-10-txt

Here is AWS Lambda Base Container Images (check different branches for other programming languages) https://github.com/aws/aws-lambda-base-images/tree/nodejs20.x

전문가
답변함 2년 전
전문가
검토됨 10달 전
전문가
검토됨 2년 전
1

Hello,

To find the Lambda package directory for AWS Lambda functions, you can do the following:

For Python

List Installed Modules:

  • Create a simple Lambda function with the following code:*
import sys

def lambda_handler(event, context):
    installed_packages = sorted([f"{i.key}=={i.version}" for i in sys.modules.values()])
    return {
        'statusCode': 200,
        'body': installed_packages
    }

  • Deploy and invoke the function to get a list of installed packages.

  • Reference List:*

Check this gist for a list of AWS Lambda modules for Python 3.10. For Other Languages

AWS Lambda Base Images: Check the AWS Lambda Base Images repository on GitHub for different programming languages. https://github.com/aws/aws-lambda-base-images This will help you understand the available packages and directories in the AWS Lambda environment.

전문가
답변함 2년 전
전문가
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.