File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,7 @@ load-state: ## Load the application state from a local file
1919clean : # # Clean up any temporary files
2020 rm * .zip
2121
22+ hot-reload :
23+ awslocal lambda update-function-code --function-name ScoringFunction --s3-bucket hot-reload --s3-key " $( pwd) /lambdas/scoring"
24+
2225.PHONY : usage deploy web save-state load-state clean
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ for LAMBDA_INFO in "${LAMBDAS[@]}"; do
145145 log " Creating Lambda function $FUNCTION_NAME ..."
146146 awslocal lambda create-function \
147147 --function-name ${FUNCTION_NAME} \
148- --runtime python3.8 \
148+ --runtime python3.10 \
149149 --handler handler.lambda_handler \
150150 --zip-file fileb://${ZIP_FILE} \
151151 --role arn:aws:iam::000000000000:role/${ROLE_NAME} \
Original file line number Diff line number Diff line change 33from decimal import Decimal , getcontext
44
55def lambda_handler (event , context ):
6+ # raise Exception()
67 getcontext ().prec = 6
78
89 dynamodb = boto3 .resource ('dynamodb' )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments