This post is quite old now.
If it's a technical article, this means that some of the information in this post might be out of date.
I'm in the process of moving all of my AWS stuff into it's own account, separated from my online shopping account. It's a process that has to be done manually as AWS don't have an easy way of moving resources between accounts.
Anyway, to stop you trolling through Amazon's horrible documentation to get this ugly job done. Here's some simple instructions on moving files between buckets and AWS accounts.
In the AWS account you want to move stuff to, create a new bucket, sadly it'll need a unique name that's not used by your current bucket.
Get the AWS account ID of your new AWS account (the one you wish to move stuff to). You can find it in your 'My Account' page.
Update the bucket policy in the old bucket (old AWS account) to this. Replace
ACCOUNT_ID
with your new AWS account's ID and replaceawsexamplesourcebucket
with the name of the old bucket.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "DelegateS3Access", "Effect": "Allow", "Principal": {"AWS": "ACCOUNT_ID"}, "Action": ["s3:ListBucket","s3:GetObject"], "Resource": [ "arn:aws:s3:::awsexamplesourcebucket/*", "arn:aws:s3:::awsexamplesourcebucket" ] } ]}
Then you'll want to install the AWS CLI, if you haven't already and configure it for your new AWS account.
Then you should be able to run the following command, replacing the obvious. If you did everything right, that command should copy everything over to your new bucket.
aws s3 sync s3://old-bucket-name s3://new-bucket-name --copy-props