File tree Expand file tree Collapse file tree 8 files changed +28
-15
lines changed
java/base-enable-lambda-debug-mode
base-concurrent-lambda-debug-mode
base-enable-lambda-debug-mode
base-multiple-lambda-debug-mode Expand file tree Collapse file tree 8 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 3939
4040# Invoke the Lambda function.
4141echo " Invoking the Lambda function."
42+ AWS_MAX_ATTEMPTS=1 \
4243awslocal lambda invoke \
43- --function-name function-one \
44- test.lambda.log \
45- --payload ' {"message": "Testing Lambda Debug Mode lifting the 1-second timeout for function-one."}'
44+ --cli-connect-timeout 3600 \
45+ --cli-read-timeout 3600 \
46+ --function-name " function_one" \
47+ --payload ' {"message": "Testing Lambda Debug Mode lifting the 1-second timeout for function-one."}' \
48+ /dev/stdout 2> /dev/stderr
4649
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def handler(event, context):
1111 return event
1212
1313
14- def wait_for_debug_client (timeout = 15 ):
14+ def wait_for_debug_client (timeout = 3600 ):
1515 """Utility function to enable debugging with Visual Studio Code"""
1616 import time , threading
1717 import sys , glob
Original file line number Diff line number Diff line change 3838# Invoke the Lambda function 3 times every 5 seconds.
3939for i in {1..3}; do
4040 echo " Invoking the Lambda function, attempt $i ."
41+ AWS_MAX_ATTEMPTS=1 \
4142 awslocal lambda invoke \
42- --function-name function-one \
43- test.lambda.$i .log \
44- --payload " {\" message\" : \" Testing Lambda Debug Mode lifting the 1-second timeout for function-one. Attempt $i .\" }" &
43+ --cli-connect-timeout 3600 \
44+ --cli-read-timeout 3600 \
45+ --function-name " function_one" \
46+ --payload " {\" message\" : \" Testing Lambda Debug Mode lifting the 1-second timeout for function-one. Attempt $i .\" }" \
47+ /dev/stdout 2> /dev/stderr &
4548 sleep 5
4649done
50+
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def handler(event, context):
1111 return event
1212
1313
14- def wait_for_debug_client (timeout = 15 ):
14+ def wait_for_debug_client (timeout = 3600 ):
1515 """Utility function to enable debugging with Visual Studio Code"""
1616 import time , threading
1717 import sys , glob
Original file line number Diff line number Diff line change 3737
3838# Invoke the Lambda function.
3939echo " Invoking the Lambda function."
40+ AWS_MAX_ATTEMPTS=1 \
4041awslocal lambda invoke \
41- --function-name function-one \
42- test.lambda.log \
43- --payload ' {"message": "Testing Lambda Debug Mode lifting the 1-second timeout for function-one."}'
42+ --cli-connect-timeout 3600 \
43+ --cli-read-timeout 3600 \
44+ --function-name " function_one" \
45+ --payload ' {"message": "Testing Lambda Debug Mode lifting the 1-second timeout for function-one."}' \
46+ /dev/stdout 2> /dev/stderr
4447
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def handler(event, context):
1414 return event
1515
1616
17- def wait_for_debug_client (timeout = 15 ):
17+ def wait_for_debug_client (timeout = 3600 ):
1818 """Utility function to enable debugging with Visual Studio Code"""
1919 import time , threading
2020 import sys , glob
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def handler(event, context):
1414 return event
1515
1616
17- def wait_for_debug_client (timeout = 15 ):
17+ def wait_for_debug_client (timeout = 3600 ):
1818 """Utility function to enable debugging with Visual Studio Code"""
1919 import time , threading
2020 import sys , glob
Original file line number Diff line number Diff line change 5454# Invoke the Lambda functions in parallel
5555for function_name in " ${FUNCTION_NAMES[@]} " ; do
5656 echo " Invoking the Lambda function $function_name ."
57+ AWS_MAX_ATTEMPTS=1 \
5758 awslocal lambda invoke \
59+ --cli-connect-timeout 3600 \
60+ --cli-read-timeout 3600 \
5861 --function-name " $function_name " \
59- test. ${ function_name} .lambda.log \
60- --payload ' {"message": "Testing Lambda Debug Mode lifting the 1-second timeout for ' " $function_name " ' . "} ' &
62+ --payload ' {"message": "Testing Lambda Debug Mode lifting the 1-second timeout for ' " $ function_name" ' . "} ' \
63+ /dev/stdout 2> /dev/stderr &
6164done
6265
6366# Wait for all invocations to complete
You can’t perform that action at this time.
0 commit comments