I have a lambda function that executes every 30 seconds (step function make 2 lambda calls with 30 sec timeout every minute). It reads some data (about 90 items) from dynamodb. And sometimes it throws me ConnectTimeoutError and I can't udenrstand why (today lambda was throwing me this errors for 3 hours every 30 seconds and than it start work correctly again)
Table have On demand capacity. Lambda runtime: python3.8
How can I solve this problem?