Skip to content

Commit

Permalink
Enable ForceGlobalBucketAccess on S3 client (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkuntian committed Jan 26, 2024
1 parent 20f9592 commit fed923d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
public class ClientBuilder {

public static AmazonS3 getS3Client() {
return AmazonS3ClientBuilder.standard().build();
return AmazonS3ClientBuilder.standard()
.withForceGlobalBucketAccessEnabled(true)
.build();
}

public static AWSStepFunctions getClient() {
Expand Down

0 comments on commit fed923d

Please sign in to comment.