How to rename folders and files in S3

To Rename a folder

aws s3 --recursive mv s3://bucketname/prefix_old/ s3://bucketname/prefix_new/

To Rename a file

aws s3 mv s3://bucketname/prefix/filename_old s3://bucketname/prefix/filename_new
See also  How to move table from one schema to another in Redshift