lifadev / archive_aws-lambda-go-shim

Author your AWS Lambda functions in Go, effectively.

Home Page:https://github.com/eawsy/aws-lambda-go-shim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is It possible to call CGO?

grafael opened this issue · comments

Is it possible to call Golang CGO routines?

Hi @grafael,

Can you please provide more detail? Do you mean calling the shim CGO functions? or your own CGO functions?

I mean my own CGO functions. I am asking that because the Google app engine (Google cloud platform) does not support, and I was wondering to use aws lambda.

In theory I don't see any problem preventing you from doing such calls. I haven't tested such calls but it should be ok.
One thing to notice, in order to compile your CGO parts, you have to be in the same environment than AWS Lambda, so you should use https://hub.docker.com/_/amazonlinux/ image or our docker image which embed this one.
I'll be glad to hear back from you to know if this scenario is possible. And do not hesitate if you encounter any problem, create an ephemeral repo and I'll assist you.

Thanks. I'll try that soon, and I let you know the results

😉 I'll close the issue for now, but feel free to continue the thread if you have any other question.