Created
May 25, 2023 21:29
-
-
Save douglascayers/9042da924b3b15b4f0727b4865655ef2 to your computer and use it in GitHub Desktop.
Move S3 files from one folder to another using AWS CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/21184720/how-to-rename-files-and-folder-in-amazon-s3 | |
BUCKET="your-bucket" | |
OLD_FOLDER="changeme" | |
NEW_FOLDER="changeme" | |
aws s3 --recursive mv s3://${BUCKET}/${OLD_FOLDER} s3://${BUCKET}/${NEW_FOLDER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment