【文件属性】:
文件名称:python-lambda-template:Python Lambda SAM + SAM本地项目
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-12 05:53:34
Python
Python Lambda模板:开发Lambda函数的示例存储库
初始化
cd python-lambda-template
python - m venv.
source bin / activate.fish
pip install -r requirements.txt
Intellij设置
项目结构> Python>使用Python创建SDK
添加SDK类路径: /path/to/python/lib/python3.6
项目结构>模块>将src和test目录作为Sources和Tests
在Intellij上安装requirements.txt
单元测试
使用pytest。
make test-unit
部署
使用 。
你的任务:
根据您的环境编辑Makevars 。
在templates/目录中创建AWS SAM模板。
在src/functions/handle
【文件预览】:
python-lambda-template-master
----templates()
--------template_offices.yaml(1KB)
--------template_heroes.yaml(1KB)
--------template_dispatchers.yaml(825B)
--------template_sponsors.yaml(1KB)
--------lambda_common_parameters.yaml(957B)
----buildspec.yml(1KB)
----test()
--------functions()
----Makevars(114B)
----src()
--------functions()
----requirements.txt(166B)
----docker-compose.yml(308B)
----.gitignore(98B)
----Makefile(3KB)
----README.md(1KB)
----LICENSE.txt(11KB)