Skip to content

Commit

Permalink
Merge pull request #284 from cdnjs/sven/region
Browse files Browse the repository at this point in the history
r2-pump specify region
  • Loading branch information
xtuc authored Mar 6, 2024
2 parents cfd93dc + a1bb0a7 commit c06f96f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/r2-pump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")),
)
Expand Down

0 comments on commit c06f96f

Please sign in to comment.