Does anyone have a zip file for a python: confluent client / import that they know works…
I’ve followed multiple examples and keep ending with the same result:
“errorMessage”: “Unable to import module ‘lambda_function’: No module named ‘confluent_kafka.cimpl’”,
“errorMessage”: “Unable to import module ‘lambda_function’: No module named ‘confluent_kafka’”,
CONFLUENT: would really be great if this was available as a useable ARN based layer.
Got the python import eventually to work…
Resolution was to build a EC2 instance, install python 3.9.16, create virtual env, install libraries =2.1.1 , zip libraries… upload as a layer.
Initially used a EC2 instance I had, build on Ubuntu, did not work, had to spin a new EC2 using amazon Linux (as that is what Lambda’s use). Worked.
Now to dig a hole through our firewalls to get outside onto the cluster.
If anyone needs these libraries, happy to share.