S3 Sync cross account failing due to AccessDenied error
Issue:
When doing cross account S3 sync, it fails due to missing permissions on the bucket
copy failed: s3://mybucketname//file_name.txt to s3://other_bcuket//file_name.txt An error occurred (AccessDenied) when calling the CopyObject operation: Access Denied
sync is performed using the account configured for the relevant N2WS policy and that account needs to be able to access both buckets
This can be done using ACL or buckets policy, for example:
1 - Make sure that the entire account or specific role are allowed to access.
2 - Make sure that access is provided to the bucket and to the entire bucket content (using *)