Skip to content

Commit

Permalink
Update S3 bucket creation to pass ObjectOwnership
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Apr 21, 2023
1 parent e0c790c commit 5343c98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ func CreateS3BucketE(t testing.TestingT, region string, name string) error {

params := &s3.CreateBucketInput{
Bucket: aws.String(name),
// https://github.com/aws/aws-sdk-go/blob/v1.44.122/service/s3/api.go#L41646
ObjectOwnership: aws.String(s3.ObjectOwnershipObjectWriter),
}
_, err = s3Client.CreateBucket(params)
return err
Expand Down

0 comments on commit 5343c98

Please sign in to comment.