Skip to content
New issue

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

feat: add support for golang lambdas running under the provided.al2 runtime #52

Open
mfreeman451 opened this issue Aug 30, 2023 · 0 comments

Comments

@mfreeman451
Copy link

❯ GOOS=linux GOARCH=arm64 go build -tags lambda.norpc -o bootstrap main.go
❯ zip myFunction.zip bootstrap
  adding: bootstrap (deflated 46%)
❯ aws lambda create-function --function-name myFunction \
--runtime provided.al2 --handler bootstrap \
--architectures arm64 \
--role arn:aws:iam::313370:role/whataburger-lambda \
--zip-file fileb://myFunction.zip
❯

These build args will produce arm64 binaries, will run faster, and will leverage the updated and AWS preferred runtime for golang. The billing model changes slightly - the current runtime does not get billed for invocation time, whereas the new runtime will, but it AWS claims it is not really much of a difference since it is so much faster now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant