AWS LambdaでPython+Flask環境を作成する

AWS SAM + Lambda + Python + Flask の環境を作成する方法を調べたのでメモにします。 環境 $ docker --version Docker version 20.10.5, build 55c4c88 $ aws --version aws-cli/2.1.34 Python/3.8.8 Linux/5.4.0-52-generic exe/x86_64.ubuntu.20 prompt/off $ sam --version SAM CLI, version 1.21.1 SAMでプロジェクトの作成 sam initでプロジェクトを作成します。 Zip形式、Image形式のでどちらでも大丈夫です。 構成: . ├── README.md ├── hello_world │ ├── app.py │ ├── requirements.txt │ ├── static │ │ └── js │ │ └── script.js │ └── templates │ └── index.html ├── samconfig.toml └── template. [Read More]
AWS  Lambda  SAM  Python  Flask