How to rename files and folder in Amazon S3?

Shan picture Shan · Jan 17, 2014 · Viewed 201.2k times · Source

Is there any function to rename files and folders in Amazon S3? Any related suggestions are also welcome.

Answer

bennythejudge picture bennythejudge · Jan 30, 2016

I just tested this and it works:

aws s3 --recursive mv s3://<bucketname>/<folder_name_from> s3://<bucket>/<folder_name_to>