Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ __pycache__
# LocalStack

volume/
.idea
.idea/
.vscode/

cdk.context.json
app-state.zip*
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ load-state: ## Load the application state from a local file
clean: ## Clean up any temporary files
rm *.zip

hot-reload:
hot-reload: ## Reconfigure the Lambda function to enable hot reloading
awslocal lambda update-function-code --function-name ScoringFunction --s3-bucket hot-reload --s3-key "$$(pwd)/lambdas/scoring"

start-debug: ## Start LocalStack with Lambda debug mode enabled
DEBUG=1 LOCALSTACK_LAMBDA_DEBUG_MODE=1 \
LOCALSTACK_LAMBDA_DEBUG_MODE_CONFIG_PATH=/tmp/debug_config.yml \
localstack start --volume $$(pwd)/etc/debug-config.yml:/tmp/debug_config.yml

.PHONY: usage deploy web save-state load-state clean
3 changes: 3 additions & 0 deletions etc/debug-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
functions:
arn:aws:lambda:us-east-1:000000000000:function:ListPublicQuizzesFunction:
debug-port: 19891
Loading