aws-samples/aws-modern-application-workshop

Lambda Function streamProcessor.go cannot find handler

Opened this issue · 0 comments

jmhal commented

Hello,

I am following Module 5 within the Go version of the tutorial. During the Creating the Streaming Service Stack, I was able to deploy the lambda function that handles the Kinesis click stream. But in the CloudWatch logs, I get the following error whenever I select a Mysfits profile:

fork/exec /var/task/streamProcessor.processRecord: no such file or directory: PathError null

After some googling, some suggested to compile the function with the environment variables GOOS=linux GOARCH=amd64 . How can I do that from inside the transformed-streaming.yaml?