Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)
How can I rename the files which are already in S3?

1 Answer

0 votes
by (44.4k points)
edited by

Yes, you can do that from the AWS CLI, with the mv command. Let me give you the step by step process. I am assuming you already have created the S3 bucket and added few objects.

Steps to rename files:

  1. Download and install the AWS CLI tool
  2. Then use the command aws configure and provide the necessary details. Follow this documentation - AWS configure documentation
  3. Use this command directly or save it in a file and call it : aws s3 -recursive mv s3://bucketname/foldername/filename s3://bucketname/foldername/newfilename
  4. Provide the appropriate information in the bucketname, foldername and filename parts. Enter the newfilename which you want in the second part.

That's it! This should work.

For more information, check out this AWS S3 tutorial. Want to become AWS Certified, then take a look at this AWS Course.

Related questions

+1 vote
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...