Skip to content

Commit

Permalink
Print out lambda version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nemere committed Mar 25, 2024
1 parent b2d5c78 commit 4266130
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/lambdas/data-import/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ import (

"github.com/aws/aws-lambda-go/lambda"
"github.com/pixlise/core/v4/api/dataimport"
"github.com/pixlise/core/v4/api/services"
"github.com/pixlise/core/v4/core/awsutil"
"github.com/pixlise/core/v4/core/fileaccess"
"github.com/pixlise/core/v4/core/logger"
"github.com/pixlise/core/v4/core/mongoDBConnection"
)

func HandleRequest(ctx context.Context, event awsutil.Event) (string, error) {
fmt.Printf("Data Importer Lambda version: %v\n", services.ApiVersion)

configBucket := os.Getenv("CONFIG_BUCKET")
datasetBucket := os.Getenv("DATASETS_BUCKET")
manualBucket := os.Getenv("MANUAL_BUCKET")
Expand Down

0 comments on commit 4266130

Please sign in to comment.