■PC環境>Windows 10 >sam –version SAM CLI, version 1.52.0 >docker –version Docker version 20.10.12, build e91ed57 >Python バージョン Python 3.8.5 ■アプリケーションのディレクトリを作成するSAM CLIを使用してFast APIをローカルでテストしていきますので、まずはアプリケーションのディレクトリを作成します。 今回は「C:\Users\user_(フォルダパス)」内に「fastapi-on-lambda」というディレクトリを作成しました。 ■FastAPIアプリケーションを作成するディレクトリを作成後、簡単なFastAPIアプリケーションを作成していきます。 ■コードfrom fastapi import FastAPI from mangum import
![AWS SAM CLIを使用してFast APIをローカルでテストする(Windows10)](https://cdn-ak-scissors.b.st-hatena.com/image/square/b0e6c97966e87a40b9ffc727d8131acbff631a61/height=288;version=1;width=512/https%3A%2F%2Flaboratory.kazuuu.net%2Fwp-content%2Fuploads%2F2021%2F07%2FL.png)