How to rename files and folders in S3 bucket

How to rename files and folders in S3 bucket

You can use aws s3 mv command to rename or move files (objects) or folders (keys) in an S3 bucket. Let me demonstrate with some examples.

Rename a file (object) in S3 bucket using AWS CLI

Rename a folder (key) in S3 bucket using AWS CLI

Move a file (object) from one location another in an S3 bucket:

Example:

You can use below links to install and configure AWS CLI

https://cloudaffaire.com/how-to-install-aws-cli/

https://cloudaffaire.com/how-to-configure-aws-cli/

Hope this solves your issue, keep learning and keep sharing.

Debjeet

Leave a Reply