Posted On: Aug 12, 2020

You can now develop your Amazon Lambda functions using Go on Amazon Linux 2, the latest generation of Amazon Linux. You can read more about the Go programming model in the Amazon Lambda documentation.

Amazon Linux 2 provides a secure, stable, and high performance execution environment to develop and run cloud-native applications. With Amazon Linux 2, you get an application environment that offers long term support with access to the latest innovations in the Linux ecosystem, at no additional charge. 

To get started, upload your code through the Amazon Lambda console and select provide your own bootstrap on Amazon Linux 2 runtime. You can also use the Amazon CLI, Amazon Serverless Application Model (SAM) and Amazon CloudFormation to deploy and manage your serverless application authored in Go. In addition, Amazon CodeStar’s Go templates let you easily set up an entire development and continuous delivery toolchain for your serverless application. Once the application has been deployed, you can use Amazon X-Ray and its Go SDK to troubleshoot and analyze the performance of your application. ). To migrate existing Amazon Lambda functions running in Go on Amazon Linux 1 to Amazon Linux 2, update your code to be compatible with Amazon Linux 2, and then update the function runtime. 

Go on Amazon Linux 2 is available in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and Amazon Web Services China (Ningxia) Region, operated by NWCD. Please visit our product page for more information about Amazon Lambda or log in to the Amazon Lambda console to get started. You can also refer to Go helper libraries on github for developing Amazon Lambda functions in Go.