Skip to content

Commit 8997fc7

Browse files
whummerclaude
andcommitted
Mount .localstack into LS container for lambda_debug_mode.yaml access
LAMBDA_DEBUG_MODE_CONFIG_PATH must be a path inside the LocalStack container. Mount .localstack/ via LOCALSTACK_DOCKER_FLAGS and point the config path to the container-internal location (/tmp/ls-debug). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2d0cff7 commit 8997fc7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"LOCALSTACK_APPINSPECTOR_ENABLE": "1",
2525
"LOCALSTACK_APPINSPECTOR_DEV_ENABLE": "1",
2626
"LOCALSTACK_LAMBDA_DEBUG_MODE": "1",
27-
"LOCALSTACK_LAMBDA_DEBUG_MODE_CONFIG_PATH": ".localstack/lambda_debug_mode.yaml"
27+
"LOCALSTACK_LAMBDA_DEBUG_MODE_CONFIG_PATH": "/tmp/ls-debug/lambda_debug_mode.yaml",
28+
"LOCALSTACK_DOCKER_FLAGS": "-v /workspaces/localstack-workshop/.localstack:/tmp/ls-debug"
2829
},
2930
"postStartCommand": "bash ./00-setup/setup.sh"
3031
}

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ start: ## Start LocalStack in the background
1515
debug-start: ## Start LocalStack with Lambda debug mode enabled (port 19891)
1616
LOCALSTACK_APPINSPECTOR_ENABLE=1 LOCALSTACK_APPINSPECTOR_DEV_ENABLE=1 \
1717
LAMBDA_DEBUG_MODE=1 \
18-
LAMBDA_DEBUG_MODE_CONFIG_PATH=$(PWD)/.localstack/lambda_debug_mode.yaml localstack start -d
18+
LOCALSTACK_DOCKER_FLAGS="-v $(PWD)/.localstack:/tmp/ls-debug" \
19+
LAMBDA_DEBUG_MODE_CONFIG_PATH=/tmp/ls-debug/lambda_debug_mode.yaml localstack start -d
1920

2021
hot-reload: ## Switch order-handler to hot-reload mode (edits take effect immediately)
2122
awslocal lambda update-function-code \

0 commit comments

Comments
 (0)