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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ