confluentinc / confluent-kafka-go

Confluent's Apache Kafka Golang client
Apache License 2.0
4.52k stars 649 forks source link

Compiled with alpine but none of AWS lambda runtime seems to be supporting alpine. #755

Open Venkat2382 opened 2 years ago

Venkat2382 commented 2 years ago

We have go code that uses confluent kakfa library. We compiled our code with golang1.17.5 alpine image and pushed to aws lambda via Sam build. Also tried with regular golang image. With both these the lambda invocation fails. This is happening only to this code that is using this library. Any thoughts or suggestions?. TIA!!!

jliunyu commented 2 years ago

Can you please try this way: https://github.com/confluentinc/confluent-kafka-go/issues/735#issuecomment-1029128523

utkarsh-mt commented 1 year ago

Hey @Venkat2382, were you able to make it work?

Venkat2382 commented 1 year ago

@utkarsh-mt it was working when you make it a docker container and deploy it as image. But I faced some issues in handling it in cicd for automated deployments. So switched to python for now. This supports native lambda and SAM cli build and deploy.