-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I might be missing something but I can't make LambdaWrapper to work on AWS Lambda:
package main
import (
"context"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/rollbar/rollbar-go"
)
func Handle(ctx context.Context) {
rollbar.Info("Starting ECR cleanup") // this gets logged
cfg, err := config.LoadDefaultConfig(ctx)
if err != nil {
panic("configuration error: " + err.Error())
}
Cleanup(ctx) // any panics from that one will not be reported
}
func main() {
rollbar.SetToken("...")
lambda.Start(rollbar.LambdaWrapper(Handle))
}
Metadata
Metadata
Assignees
Labels
No labels