Skip to content

kinesis-lambda-dynamodb: python version outdated #5

@JannisTriesToCode

Description

@JannisTriesToCode

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions