Skip to content

Commit bf73014

Browse files
fix(lambda-promtail): Remove s3 bucket ownership verification (#15383)
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
1 parent a3808b6 commit bf73014

File tree

1 file changed

+1
-2
lines changed
  • tools/lambda-promtail/lambda-promtail

1 file changed

+1
-2
lines changed

‎tools/lambda-promtail/lambda-promtail/s3.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,9 @@ func processS3Event(ctx context.Context, ev *events.S3Event, pc Client, log *log
292292
&s3.GetObjectInput{
293293
Bucket: aws.String(labels["bucket"]),
294294
Key: aws.String(labels["key"]),
295-
ExpectedBucketOwner: aws.String(labels["bucket_owner"]),
296295
})
297296
if err != nil {
298-
return fmt.Errorf("failed to get object %s from bucket %s on account %s, %s", labels["key"], labels["bucket"], labels["bucket_owner"], err)
297+
return fmt.Errorf("failed to get object %s from bucket %s, %s", labels["key"], labels["bucket"], err)
299298
}
300299
err = parseS3Log(ctx, batch, labels, obj.Body, log)
301300
if err != nil {

0 commit comments

Comments
 (0)