# aws s3api list-buckets --query Owner.ID --output text
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Amazon AWS console / S3 /
Create Bucket: “new-bucket”.
Amazon AWS console / S3 / new-bucket / Permissions / Block Public Access
OFF
Amazon AWS console / S3 / new-bucket / Permissions / Access Control List
Add permissions for obtained Canonical ID.
Amazon AWS console / S3 / new-bucket / Permissions / Bucket Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"CanonicalUser": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::new-bucket/*"
}
]
}
# aws s3 sync s3://new-bucket/ .