You are on page 1of 2

source A

Destination B

login to one of the server of the account (B) you want to copy data to

aws s3 ls

IN SOURCE ACCOUNT A:

CREATE A IAM USER (PROGRAMMTIC ACCESS),DOWNLOAD SECREAT KEY,ACCESS KEY FILE .

This information is stored in .aws/credentials

aws configure --profile pvaibuyer(THIS NAME CAN BE ANYTHING)

Note: Give your secreat key , access key you have downloaded.

aws s3 ls --profile pvaibuyer ----(you will be able to see the source side s3 buckets)

aws s3 cp <source> <destination> --recursive –profile <name of the profile>

aws s3 cp s3://pvai-xce-learning/tf1/ s3://pvai-xce-learning-models/ --recursive --profile pvaibuyer

or

[Copy on the server from source and then copy the downloaded data to destination]

aws s3 cp s3://pvai-xce-learning/tf1/ . --profile pvaibuyer

ls -al

aws s3 cp rule/ s3://pvai-xce-learning-models/ --recursive

You might also like