examples
examples copied to clipboard
aws-go-lambda-gateway Linux/macOS example does not deploy a valid binary
After deploying the aws-go-lambda-gateway example, when curling the generated API Gateway endpoint, the response is {"message": "Internal server error"}%.
Upon further inspection via CloudWatch logs, the following appears: /var/task/handler: /lib64/libc.so.6: version GLIBC_2.32 not found (required by /var/task/handler).
I found that disabling CGO by adding CGO_ENABLED=0 to the Makefile solves the problem as it creates a binary that the Lambda environment expects. This might impact each of the macOS and Linux Go examples in this repo.
Cheers and thanks for creating a fantastic tool.