Go is implemented differently than other managed runtimes. Because Go compiles natively to an executable binary, it doesn't require a dedicated language runtime. Use an OS-only runtime (the provided
runtime family) to deploy Go functions to Lambda.
The Go 1.x managed runtime for Lambda is deprecated. If you have functions that use the Go 1.x runtime, you must migrate your functions to provided.al2023
or provided.al2
. The provided.al2023
and provided.al2
runtimes offer several advantages over go1.x
, including support for the arm64 architecture (AWS Graviton2 processors), smaller binaries, and slightly faster invoke times.
No code changes are required for this migration. The only required changes relate to how you build your deployment package and which runtime you use to create your function. For more information, see Migrating AWS Lambda functions from the Go1.x runtime to the custom runtime on Amazon Linux 2 on the AWS Compute Blog.
Name Identifier Operating system Deprecation date Block function create Block function updateOS-only Runtime
provided.al2023
Amazon Linux 2023
Jun 30, 2029
Jul 31, 2029
Aug 31, 2029
OS-only Runtime
provided.al2
Amazon Linux 2
Jun 30, 2026
Jul 31, 2026
Aug 31, 2026
Tools and librariesLambda provides the following tools and libraries for the Go runtime:
For more information, see aws-lambda-go on GitHub.
Lambda provides the following sample applications for the Go runtime:
Sample Lambda applications in Gogo-al2 â A hello world function that returns the public IP address. This app uses the provided.al2
custom runtime.
blank-go â A Go function that shows the use of Lambda's Go libraries, logging, environment variables, and the AWS SDK. This app uses the go1.x
runtime.
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4