How to rename the files or objects in Amazon S3
Note: Just like folders in s3 we cannot directly rename the files here we are moving the file into new destination and then remove the old file
Step 1: To Rename the file use following command
Note: Instead of cp we can use mv (move) command here
aws s3 cp s3://bucket_name/folder_name/file_name s3://bucket_name/new_folder_name/new_object_name
We can see that the successfully renaming to the new object name in below picture
Step 2: Then remove the old object
aws s3 rm s3://bucket_name/folder_name/old_object_name
How To Rename Files And Folder In Amazon S3 ?
S3 stands for Simple Storage Service and is a widely used object storage service provided by Amazon Web Services. S3 offers unlimited storage to its users and also enables them to store any type of data, whether it be text, images, videos, executable files, tar files, etc. The reason why S3 is popular is because of its scalable storage for data needs, security features, & high availability.
Table of Content
- Step-by-step to rename files and folders in Amazon S3?
- How to rename the files or objects in Amazon S3
- Conclusion:
- How to rename files and folder in Amazon S3 – FAQ’s