Could not delete objects from S3 bucket

0

There were some objects created in a bucket folder. Each time I delete the objects, they reappear again. They were originally created through a Lambda function triggered from EventBridge. I have disabled the event bridge and no new objects are being created. Nonetheless, s3 is not allowing me to delete the existing objects. After deleting, they reappear.

3 回答
1

Hi,

Some objects in some system bucket are created by diverse AWS services like CloudTrail which can automatically store some logs in buckets .

So, can you detail a bit the content of the S3 objects to see if they are generated by AWS services?

Best,

Didier

profile pictureAWS
专家
已回答 4 个月前
1

Hi,

Please let me know if my understanding is correct or not. I think lambda is pushing logs to S3 bucket. Can you confirm S3 is configured as destination or not ? Normally lambda pushes logs to CloudWatch Log Group, but here as you said it sends to S3 bucket, so most probably you can check execution permissions of lambda and I hope S3 bucket is configured in the permission. As you disabled eventbridge schedule, so no objects would be created in S3, but it won't allow you to delete because of execution role which gives permission to lamda function to create logs only.

iamAni
已回答 4 个月前
0

You can turn on CloudTrail Data events for your S3 to have better idea of who has access to your buckets and what actions they are taking. This will help you debug where / how the S3 object are being added back. https://docs.aws.amazon.com/AmazonS3/latest/userguide/cloudtrail-logging.html

profile pictureAWS
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则