【问题标题】:Running python with boto2 as an AWS Lambda function使用 boto2 作为 AWS Lambda 函数运行 python
【发布时间】:2017-10-23 15:22:40
【问题描述】:

我正在使用来自 github 的 python 脚本在 AWS lambda 上运行。 我意识到 import boto 语句在 lambda 中运行时不起作用。 有没有办法指示 lambda 也加载 boto2?

【问题讨论】:

标签: amazon-web-services aws-lambda boto


【解决方案1】:

好的,我所要做的就是按照文档使用“pip install module-name -t /path/to/project-dir”安装 boto: http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html

然后压缩 lambda 所需的文件并上传。

【讨论】:

    猜你喜欢
    • 2021-09-19
    • 2020-11-10
    • 1970-01-01
    • 1970-01-01
    • 2019-06-11
    • 1970-01-01
    • 2020-01-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多