Warning: This post is over 5 years old, so some of what you read 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.
ACCOUNT_ID
with your new AWS account's ID and replace awsexamplesourcebucket
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"
]
}
]
}
aws s3 sync s3://old-bucket-name s3://new-bucket-name --copy-props