+
+.PHONY: deploy-lambda
+deploy-lambda:
+ rm -rf .deploy-lambda-source
+ git clone . .deploy-lambda-source
+ make -C .deploy-lambda-source flake
+ make -C .deploy-lambda-source bootstrap
+ (cd .deploy-lambda-source; . env/bin/activate; make reqs)
+ (cd .deploy-lambda-source/env/lib/python*/site-packages; zip -r ../../../../turbot.zip .)
+ (cd .deploy-lambda-source/turbot_lambda; zip ../turbot.zip turbot_lambda.py)
+ (cd .deploy-lambda-source; zip turbot.zip $$(git ls-files -- turbot))
+ (cd .deploy-lambda-source; \
+ aws lambda update-function-code \
+ --profile halibut \
+ --function-name turbot \
+ --zip-file fileb://turbot.zip )
+ rm -rf .deploy-lambda-source
+
+.PHONY: deploy
+deploy: deploy-lambda