Created
September 2, 2018 07:50
Star
You must be signed in to star a gist
aws-lambda-image_makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lambda: | |
npm install . | |
@echo "Factory package files..." | |
. . . . . . . | |
@echo "Create package archive..." | |
@cd build && zip -rq aws-lambda-image.zip . | |
@mv build/aws-lambda-image.zip ./ | |
uploadlambda: lambda | |
@if [ -z "${LAMBDA_FUNCTION_NAME}" ]; then (echo "Please export LAMBDA_FUNCTION_NAME" && exit 1); fi | |
aws lambda update-function-code --function-name ${LAMBDA_FUNCTION_NAME} --zip-file fileb://aws-lambda-image.zip | |
clean: | |
@echo "clean up package files" | |
@if [ -f aws-lambda-image.zip ]; then rm aws-lambda-image.zip; fi | |
@rm -rf build/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment