Skip to content

Commit fb36e35

Browse files
committed
Handle timeouts in invoke command
1 parent a02aa01 commit fb36e35

File tree

1 file changed

+3
-1
lines changed
  • lambda-debug-mode/lambda-java-debugging

1 file changed

+3
-1
lines changed

lambda-debug-mode/lambda-java-debugging/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ deploy-sam: ## Deploy the Lambda function via AWS SAM CLI
5757
$(SAM) deploy
5858

5959
invoke: ## Invoke the Lambda function and show logs
60-
$(AWS) lambda invoke --function-name $(FUNCTION_NAME) \
60+
AWS_MAX_ATTEMPTS=1 $(AWS) lambda invoke --function-name $(FUNCTION_NAME) \
6161
--payload file://events/event.json \
62+
--cli-connect-timeout 3600 \
63+
--cli-read-timeout 3600 \
6264
--log-type Tail \
6365
response.json | jq .LogResult -r | base64 -d && cat response.json | jq -r .result
6466

0 commit comments

Comments
 (0)