I'm wondering if it's possible to transfer ownership of an S3 bucket created by one user to another user. The bucket in question has around 15-20 million files, totaling about 1.5TB of data. It would be great if the bucket could keep the same name after the transfer. Has anyone done this before or knows the process?
2 Answers
S3 buckets are actually owned by an AWS account, not individual users. So, while you can't transfer a bucket directly from one account to another, you can share access with multiple users. If you're just looking to transfer the data itself, consider using DataSync to move your files. Just keep in mind that transfer costs might apply.
You can't just move the bucket to another account since it's linked to an AWS account. The usual route is to create a new bucket in the destination account, copy all the data over, and then delete the original bucket. After that, you can reuse the original bucket name in the new account.
So, to clarify, the steps would be: 1) Create a new bucket in the destination account, 2) Transfer all the data from the old bucket to the new one, 3) Delete the old bucket, and 4) Rename the new bucket to the old one. Sounds like I'm on the right track!