We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As documented in the below link, the lambda go1.x runtime has now been deprecated by AWS, the provided.al2023 runtime should be used instead. https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-from-the-go1-x-runtime-to-the-custom-runtime-on-amazon-linux-2/
This causes the deployment to fail:
dce/modules/lambda/lambda.tf
Line 4 in 06a0c25
The text was updated successfully, but these errors were encountered:
A possible quickfix is:
OLD:
runtime = "go1.x" handler = var.handler
NEW:
runtime = "provided.al2" handler = "bootstrap"
GOARCH=amd64 GOOS=linux go build -v -o ../../../bin/lambda/$mod_name cd ../../.. zip -j --must-match \ bin/lambda/$mod_name.zip \ bin/lambda/$mod_name
GOARCH=amd64 GOOS=linux go build -v -o ../../../bin/lambda/bootstrap cd ../../.. zip -j --must-match \ bin/lambda/$mod_name.zip \ bin/lambda/bootstrap
Tested it myself today on v0.34.1, works.
Sorry, something went wrong.
@moellr tried your solution, deployed successfully but getting error in lambda execution in /api/auth
INIT_REPORT Init Duration: 0.25 ms Phase: invoke Status: error Error Type: Runtime.InvalidEntrypoint START RequestId: 60323ffe-d998-4121-84c2-13fe13fc9324 Version: $LATEST RequestId: 60323ffe-d998-4121-84c2-13fe13fc9324 Error: Couldn't find valid bootstrap(s): [/var/task/bootstrap /opt/bootstrap] Runtime.InvalidEntrypoint END RequestId: 60323ffe-d998-4121-84c2-13fe13fc9324 REPORT RequestId: 60323ffe-d998-4121-84c2-13fe13fc9324 Duration: 2.72 ms Billed Duration: 3 ms Memory Size: 128 MB Max Memory Used: 2 MB
Any help is appreciated...
No branches or pull requests
As documented in the below link, the lambda go1.x runtime has now been deprecated by AWS, the provided.al2023 runtime should be used instead.
https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-from-the-go1-x-runtime-to-the-custom-runtime-on-amazon-linux-2/
This causes the deployment to fail:
dce/modules/lambda/lambda.tf
Line 4 in 06a0c25
The text was updated successfully, but these errors were encountered: