Transferring an AWS s3 bucket from one account to another?

Hello all,
    I just started with a company and we are in process of getting started with AWS. The previous administrator was learning AWS and getting the ball rolling and uploaded a ton of things, but uploaded everythnig to an account that uses his name. I have administrative access to both the old AWS account and a new company one we created. How can I take all the data from S3 buckets and move them over without having to download everything to my pc (it is a few TB of data) and then reuploading it? I tried to go in to the old AWS buckets permissions and tried to see if I could add the new AWS accounts number to it, but it said "Invalid ID".

Any ideas?
MostHatedIT ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Phil PhillipsDevOps ArchitectCommented:
You can use the aws command line utility to sync from one bucket to another:

aws s3 sync s3://sourcebucket s3://destinationbucket

Open in new window

Though, first you will have to set up permissions in the bucket/IAM policies on both accounts.  There's an AWS article that does a good job on outlining what you'd need to do for a sync:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shalom CarmelCTOCommented:
You should have renamed the old account to use a new name and a new set of credentials.
If your new and shiny corporate account still has a small amount of resources, do that.
MostHatedIT ManagerAuthor Commented:
It does use a new name and credentials for the top level account. I can make any new accounts under either if need be. I am going to look into the link that @Phil Phillips posted and see if that works out for me and then report back.

MostHatedIT ManagerAuthor Commented:
Ok, great. I was able to get it working. Thanks again.

Is there a way to make multiple ones go right after another?

Example :

aws s3 sync s3://bucketA1 s3://bucketA2, aws s3 sync s3://bucketB1 s3://bucketB2, aws s3 sync s3://bucketC1 s3://bucketC2?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.