I have a working lambda with sqs trigger in go1.x runtime and trying to deploy same to new provided.al2 runtime using steps described in this page
https://docs.aws.amazon.com/lambda/latest/dg/golang-package.html
steps used:
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -tags lambda.norpc -o bootstrap main.go
- zip main.zip bootstrap
- aws lambda create-function --function-name test-go-al2 --runtime provided.al2 --handler bootstrap --architecture x86_64 --role <role_arn> --zip-file fileb://main.zip
- Enabled sqs trigger
After deploying function, it keeps emitting the log
INIT_REPORT Init Duration: 10009.73 ms Phase: init Status: timeout
Am I missing anything else here?