The lambda function created gave the error as below
26 Jan 2022 09:05:13,763 [INFO] (/var/runtime/bootstrap.py) main started at epoch 1643187913763
--
26 Jan 2022 09:05:13,961 [INFO] (/var/runtime/bootstrap.py) init complete at epoch 1643187913961
Traceback (most recent call last):
File "/var/task/index.py", line 48, in lambda_handler
responseData = {'Error': traceback.format_exc(e)}
File "/var/lang/lib/python3.6/traceback.py", line 167, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
File "/var/lang/lib/python3.6/traceback.py", line 121, in format_exception
type(value), value, tb, limit=limit).format(chain=chain))
File "/var/lang/lib/python3.6/traceback.py", line 509, in __init__
capture_locals=capture_locals)
File "/var/lang/lib/python3.6/traceback.py", line 338, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'ClientError' and 'int'
The lambda function created gave the error as below