-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Many thanks for your tutorials.
Running kinesis-lambda-dynamodb following the README results in the following error in the docker logs after submitting the data to kinesis:
2024-09-22T19:45:28.617 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] START RequestId: 616c2c5c-419f-4961-ae40-00291ea5009d Version: $LATEST
2024-09-22T19:45:28.619 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] [ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'lambda_function': invalid syntax (client.py, line 151)
2024-09-22T19:45:28.619 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] Traceback (most recent call last):
2024-09-22T19:45:28.619 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] File "/var/task/botocore/client.py" Line 151
2024-09-22T19:45:28.619 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] if auth := service_model.metadata.get('auth'):
2024-09-22T19:45:28.619 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] END RequestId: 616c2c5c-419f-4961-ae40-00291ea5009d
2024-09-22T19:45:28.619 DEBUG --- [functhread11] l.s.l.i.version_manager : [order_processor-616c2c5c-419f-4961-ae40-00291ea5009d] REPORT RequestId: 616c2c5c-419f-4961-ae40-00291ea5009d Duration: 1.06 ms Billed Duration: 2 ms Memory Size: 128 MMax Memory Used: 128 MB
This can be fixed by upgrading the python version for resource "aws_lambda_function" "order_processor" to python3.11.
Metadata
Metadata
Assignees
Labels
No labels