Skip to content

Commit a1bb0a7

Browse files
committed
r2-pump specify region
1 parent cfd93dc commit a1bb0a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/r2-pump/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func invoke(ctx context.Context, e gcp.GCSEvent) error {
118118
})
119119

120120
cfg, err := config.LoadDefaultConfig(ctx,
121+
config.WithRegion("auto"),
121122
config.WithEndpointResolverWithOptions(r2Resolver),
122123
config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(R2_KEY_ID, R2_KEY_SECRET, "")),
123124
)

0 commit comments

Comments
 (0)