lambda

command
v0.0.0-...-69203f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 7 Imported by: 0

README

Inside AWS Lambda with Go

Simple function to respond Go runtime environment stats, like NumCPU. Uses AWS API Gateway.

Follow this tutorial from AWS to get started with setting up your function.
Note: the name of the Lambda handler must be hello (matching the name of the Go binary in the .zip)

Build function

$ git clone https://github.com/embano1/gotutorials/
$ cd gotutorials/lambda
$ sh build.sh

Then upload lambda.zip as your code entry type (using .zip).

Query AWS API Gateway endpoint

# Uses a 2s timeout
$ curl -I -m 2 https://<ENDPOINT>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL