Apex is a tool for building, deploying, and managing AWS Lambda functions. It used to provide a Go shim for managing Lambda functions in code, but this is now done using the native AWS library (https://github.com/aws/aws-lambda-go). This recipe will explore creating Go Lambda functions and deploying them with Apex.
Getting ready
Configure your environment according to these steps:
- Download and install Go 1.12.6 or greater on youroperatingsystem fromhttps://golang.org/doc/install.
- Install Apex from http://apex.run/#installation.
- Open Terminal or console application and create and navigate to a project directory such as ~/projects/go-programming-cookbook. All the code we will cover in this recipe will be run and modified from this directory.
- Clone the latest code into~/projects/go-programming-cookbook-original. Here, you have the option to work from that directory rather than typing...