Skip to content

sebastianlacuesta/localstack-sample-go-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Go AWS Lambda

Sample project to test AWS Lambda functions written in Go with LocalStack

Install

  • Clone this repository
  • Install Docker
  • Install Docker Compose
  • Run docker-compose up to setup LocalStack

Compile and deploy

  • Compile and install with make install.
  • If you do some changes, make should compile, build and deploy.

Invoking function

aws --endpoint-url http://localhost:4566 lambda invoke \
  --function-name sample-lambda \
  --payload '{"firstname": "foo", "lastname": "bar", "age": 41}' \
  output

Should produce an output with contents:

"{\"name\":\"foo bar\",\"age\":41}"

About

Sample AWS Lambda function written in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published