- Copy the origin S3 bucket to a local temp folder using the origin key:
AWS_ACCESS_KEY_ID=<key-here> AWS_SECRET_ACCESS_KEY=<secret-here> aws s3 sync s3://origin-bucket-name temp
- Copy from your local temp folder to the destination bucket, using the destination key:
AWS_ACCESS_KEY_ID=<key-here> AWS_SECRET_ACCESS_KEY=<secret-here> aws s3 sync temp s3://destination-bucket-name
- Delete the local temp folder
rm -rf ./temp