0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Lambda のローカル実行環境を構築する。

Posted at

はじめに

前提条件

  • Ubuntu 22.04.3 LTS(wsl2)

AWS CLI インストール

次の URL を参考にインストールします。

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

SAM CLI インストール

次の URL を参考にインストールします。

wget "https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip"
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
sudo ./sam-installation/install

Dockerのインストール

次の URL を参考にインストールします。

確認

以下が出たら準備完了!
image.png

やってみる。

とりあえず、7 - Serverless APIを作ってみます。

image.png

作成されるファイル群は以下の通り。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?