I need to rename a huge number of files stored in an AWS S3 bucket. Each file/object will be renamed individually (based on the certain criteria - there is no common "prefix/suffix"). I came up with the list of 'current_filename' and 'new_filename' which can be executed the CLI as a .bat file/queue.
Is it possible to update just an object key (key name) in AWS S3 bucket via CLI or programmatically, without have to copy/move file as below:
aws s3 cp s3://mybucket/folder/myfilename.jpg s3://mybucket/folder/my_NEW_filename.jpg
I can keep all other object metadata the same, but file name (key name) has to change.