Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lots of files appearing in my Amazon S3 bucket

Objects and files names in my S3 bucket changed from my selected names to those displayed in the screenshot below.. And now when I update a file, it uploads successfully but doesn't change, the date modified is not changed neither are the changes in the codes are visible on the web page. Can someone please help me find out what happens to this bucket and how can I fix it?

See the file and object names are all strange

like image 509
Tidi Avatar asked Jul 31 '17 07:07

Tidi


People also ask

How do I clean up my S3 bucket?

To empty an S3 bucket In the Bucket name list, select the option next to the name of the bucket that you want to empty, and then choose Empty. On the Empty bucket page, confirm that you want to empty the bucket by entering the bucket name into the text field, and then choose Empty.

Is there a limit to the number of files in S3 bucket?

S3 provides unlimited scalability, and there is no official limit on the amount of data and number of objects you can store in an S3 bucket. The size limit for objects stored in a bucket is 5 TB.


Video Answer


1 Answers

The files you are showing are created by Amazon S3 bucket logging, which creates log files of access requests to Amazon S3.

Logging is activated within the Properties panel of your bucket, where you can nominate a target bucket and prefix for the logs.

So, your files are not being renamed. Rather, they are additional log files that are generated by Amazon S3.

If they are in the same location as your files, things will get confusing! Your files are still in there, but probably later in the naming scheme.

I would recommend:

  • Go into the bucket's properties
  • If you do not need the logs, then disable bucket logging
  • If you wish to keep the logs, configure them to write to a different bucket, or the same bucket but with a prefix (directory)
  • Delete or move the existing log files so that you will be left with just your non-log files
like image 168
John Rotenstein Avatar answered Nov 15 '22 12:11

John Rotenstein