This package allows you to write AWS Lambda functions to process S3 bucket events.
For step by step instructions on how to author your AWS Lambda function code in Go, see eawsy/aws-lambda-go-shim.
go get -u -d github.com/eawsy/aws-lambda-go-event/...
package main
import (
"log"
"github.com/eawsy/aws-lambda-go-event/service/lambda/runtime/event/s3evt"
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
)
func Handle(evt *s3evt.Event, ctx *runtime.Context) (interface{}, error) {
for _, rec := range evt.Records {
log.Println(rec)
}
return nil, nil
}