LoginSignup
0
0

More than 5 years have passed since last update.

ローカルからAWSのLambda関数を編集する

Posted at

サーバーレスとはいえ、バージョン管理したいので。

直接AWSの画面からインラインで更新すると、履歴が追いにくいので、下記のようなスクリプトを作った。

deploy-lambda.sh
#!/bin/bash

set -eux

zip -r bundle.zip .

aws lambda update-function-code \
  --function-name arn:aws:lambda:ap-northeast-1:*************:function:*************** \
  --zip-file fileb://bundle.zip

rm bundle.zip

echo ''
echo 'OK.'

編集頻度が高ければ、CircleCIとかにやらせるのが吉。

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