1. 개요
두 계정의 Bucket간 sync 정리
A 계정의 bucket에서 B 계정의 bucket sync하는 예
2. 전제조건
B 계정이 A 계정의 Bucket에 대한 권한이 있어야 한다.
3. 커맨드
$ aws s3 sync s3://BucketA s3://BucketB
5. 문제
5-1. An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
B 계정에 특정 버킷에 대한 ListBucket 권한이 있는지 확인. 예를 들어 Bucket1에 대해서라면,
{ "Effect": "Allow", "Action": [ "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::BucketA" ] },
주의할 것은 ListBucket은 Bucket1 이지 Bucket1/*이 아니라는 것이다.
5-2. An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied
aws s3 sync 시 이런 문제가 발생한다면 BucketA, 즉 Source bucket에도 PutObject 권한이 있는지 확인.