From a1bb0a73360b96bf250deb67f5daec5299ba60a7 Mon Sep 17 00:00:00 2001 From: Sven Sauleau Date: Wed, 6 Mar 2024 13:48:56 +0100 Subject: [PATCH] r2-pump specify region --- cmd/r2-pump/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/r2-pump/main.go b/cmd/r2-pump/main.go index 086835e..6f5ab9c 100644 --- a/cmd/r2-pump/main.go +++ b/cmd/r2-pump/main.go @@ -118,6 +118,7 @@ func invoke(ctx context.Context, e gcp.GCSEvent) error { }) cfg, err := config.LoadDefaultConfig(ctx, + config.WithRegion("auto"), config.WithEndpointResolverWithOptions(r2Resolver), config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(R2_KEY_ID, R2_KEY_SECRET, "")), )