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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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